From f8a81a685be879d3fc1aa3f5718e6a0198132449 Mon Sep 17 00:00:00 2001 From: dbs Date: Sat, 14 Mar 2009 02:31:48 +0000 Subject: [PATCH] Pure whitespace, nothing more git-svn-id: svn://svn.open-ils.org/ILS/trunk@12515 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/reports/xul/source-browse.js | 118 +++++++++++++++--------------- Open-ILS/web/reports/xul/source-setup.js | 22 +++--- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/Open-ILS/web/reports/xul/source-browse.js b/Open-ILS/web/reports/xul/source-browse.js index b444781fa..df13f9508 100644 --- a/Open-ILS/web/reports/xul/source-browse.js +++ b/Open-ILS/web/reports/xul/source-browse.js @@ -66,7 +66,7 @@ function sourceTreeHandler (ev, dbl) { subtreeList.push( { name : name, - nullable : 'Default', + nullable : 'Default', idlclass : idlclass, map : map, key : key, @@ -77,67 +77,67 @@ function sourceTreeHandler (ev, dbl) { } ); - if ($('nullable-source-control').checked) { - if (reltype == 'has_a') { - subtreeList.push( - { name : name, - nullable : 'Parent', //rpt_strings.LINK_NULLABLE_RIGHT, - idlclass : idlclass, - map : map, - key : key, - join : 'right', - field : field.getAttribute('name'), - reltype : reltype, - link : link, - fullpath : fullpath + '>right' - } - ); + if ($('nullable-source-control').checked) { + if (reltype == 'has_a') { + subtreeList.push( + { name : name, + nullable : 'Parent', //rpt_strings.LINK_NULLABLE_RIGHT, + idlclass : idlclass, + map : map, + key : key, + join : 'right', + field : field.getAttribute('name'), + reltype : reltype, + link : link, + fullpath : fullpath + '>right' + } + ); - subtreeList.push( - { name : name, - nullable : 'None', //rpt_strings.LINK_NULLABLE_NONE - idlclass : idlclass, - map : map, - key : key, - join : 'inner', - field : field.getAttribute('name'), - reltype : reltype, - link : link, - fullpath : fullpath + '>inner' - } - ); + subtreeList.push( + { name : name, + nullable : 'None', //rpt_strings.LINK_NULLABLE_NONE + idlclass : idlclass, + map : map, + key : key, + join : 'inner', + field : field.getAttribute('name'), + reltype : reltype, + link : link, + fullpath : fullpath + '>inner' + } + ); + + } else { + subtreeList.push( + { name : name, + nullable : 'Child', //rpt_strings.LINK_NULLABLE_LEFT, + idlclass : idlclass, + map : map, + key : key, + join : 'left', + field : field.getAttribute('name'), + reltype : reltype, + link : link, + fullpath : fullpath + '>left' + } + ); - } else{ - subtreeList.push( - { name : name, - nullable : 'Child', //rpt_strings.LINK_NULLABLE_LEFT, - idlclass : idlclass, - map : map, - key : key, - join : 'left', - field : field.getAttribute('name'), - reltype : reltype, - link : link, - fullpath : fullpath + '>left' - } - ); + subtreeList.push( + { name : name, + nullable : 'None', //rpt_strings.LINK_NULLABLE_NONE + idlclass : idlclass, + map : map, + key : key, + join : 'inner', + field : field.getAttribute('name'), + reltype : reltype, + link : link, + fullpath : fullpath + '>inner' + } + ); - subtreeList.push( - { name : name, - nullable : 'None', //rpt_strings.LINK_NULLABLE_NONE - idlclass : idlclass, - map : map, - key : key, - join : 'inner', - field : field.getAttribute('name'), - reltype : reltype, - link : link, - fullpath : fullpath + '>inner' - } - ); - - } - } + } + } } populateSourcesSubtree( item.lastChild, subtreeList ); diff --git a/Open-ILS/web/reports/xul/source-setup.js b/Open-ILS/web/reports/xul/source-setup.js index 729b01f74..8e902de0c 100644 --- a/Open-ILS/web/reports/xul/source-setup.js +++ b/Open-ILS/web/reports/xul/source-setup.js @@ -260,27 +260,27 @@ function populateDetailTree (tcNode, c, item) { var _label = _cname; if (atom.length > 1 && k == steps.length - 1) { - var field_name = atom[1]; - var join_type = field_name; + var field_name = atom[1]; + var join_type = field_name; - field_name = field_name.split(/>/)[0]; - join_type = join_type.split(/>/)[1]; + field_name = field_name.split(/>/)[0]; + join_type = join_type.split(/>/)[1]; var _f = getIDLField(classNode, field_name); var _fname = _f.getAttributeNS(rptNS, 'label'); if (!_fname) _fname = _f.getAttribute('name'); if (_fname) _label += ' :: ' + _fname; if (join_type) _label += ' (' + join_type + ')'; - - } else if (atom[1]){ - var field_name = atom[1]; - var join_type = field_name; - field_name = field_name.split(/>/)[0]; - join_type = join_type.split(/>/)[1]; + } else if (atom[1]) { + var field_name = atom[1]; + var join_type = field_name; + + field_name = field_name.split(/>/)[0]; + join_type = join_type.split(/>/)[1]; if (join_type) _label += ' (' + join_type + ')'; - } + } path_label.push(_label); } -- 2.11.0