Clean up some long lines
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 27 Sep 2012 20:32:53 +0000 (16:32 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 28 Sep 2012 18:08:44 +0000 (14:08 -0400)
Mainly add line breaks to all the xulg setting functions.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/xul/staff_client/server/cat/bibs_abreast.js
Open-ILS/xul/staff_client/server/cat/marc_new.xul
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
Open-ILS/xul/staff_client/server/cat/volume_copy_editor.js
Open-ILS/xul/staff_client/server/circ/circ_summary.xul
Open-ILS/xul/staff_client/server/circ/copy_details.xul
Open-ILS/xul/staff_client/server/patron/bill_details.js
Open-ILS/xul/staff_client/server/patron/hold_details.js

index 9cfc57e..2df76ff 100644 (file)
@@ -121,7 +121,10 @@ function render_bib(record_id) {
 function render_bib_brief(new_node,record_id) {
     // iframe
     var bib_brief = util.widgets.find_descendants_by_name(new_node,'bib_brief')[0];
-    var setXulG = function() { get_contentWindow(bib_brief).xulG = { 'docid' : record_id }; bib_brief.removeEventListener('load', setXulG, true); };
+    var setXulG = function() {
+        get_contentWindow(bib_brief).xulG = { 'docid' : record_id };
+        bib_brief.removeEventListener('load', setXulG, true);
+    };
     bib_brief.addEventListener('load', setXulG, true);
     bib_brief.setAttribute('src', urls.XUL_BIB_BRIEF_VERTICAL);
 }
index ea6fc7f..ba95f29 100644 (file)
                             var marc_editor = document.createElement('iframe');
                             $('marc_editor_box').appendChild(marc_editor);
                             marc_editor.setAttribute('flex','1');
-                            var setXulG = function() { get_contentWindow(marc_editor).xulG = params; marc_editor.removeEventListener('load', setXulG, true); };
+                            var setXulG = function() {
+                                get_contentWindow(marc_editor).xulG = params;
+                                marc_editor.removeEventListener('load', setXulG, true);
+                            };
                             marc_editor.addEventListener('load', setXulG, true);
                             marc_editor.setAttribute('src',url);
 
index a54c11d..f1c9601 100644 (file)
@@ -195,7 +195,10 @@ function my_init() {
         } else {
             while(sb.firstChild) sb.removeChild(sb.lastChild);
             var summary = document.createElement('iframe'); sb.appendChild(summary);
-            var setXulG = function() { get_contentWindow(summary).xulG = { 'docid' : g.doc_id }; summary.removeEventListener('load', setXulG, true);};
+            var setXulG = function() {
+                get_contentWindow(summary).xulG = { 'docid' : g.doc_id };
+                summary.removeEventListener('load', setXulG, true);
+            };
             summary.addEventListener('load', setXulG, true);
             summary.setAttribute('src',urls.XUL_BIB_BRIEF);
             summary.setAttribute('flex','1');
index b60df9b..0f0c084 100644 (file)
@@ -146,7 +146,10 @@ function on_volume_pane_load() {
         var sb = document.getElementById('summary_box');
         while(sb.firstChild) sb.removeChild(sb.lastChild);
         var summary = document.createElement('iframe'); sb.appendChild(summary);
-        var setXulG = function() { get_contentWindow(summary).xulG = { 'docid' : f_content.g.doc_id }; summary.removeEventListener('load', setXulG, true);};
+        var setXulG = function() {
+            get_contentWindow(summary).xulG = { 'docid' : f_content.g.doc_id };
+            summary.removeEventListener('load', setXulG, true);
+        };
         summary.addEventListener('load', setXulG, true);
         summary.setAttribute('src',urls.XUL_BIB_BRIEF);
         summary.setAttribute('flex','1');
index 71883ed..6b7f6fa 100644 (file)
 
                 var tv = $('top_vbox'); while(tv.firstChild) tv.removeChild(tv.lastChild);
                 var top = document.createElement('iframe'); tv.appendChild(top);
-                var setTopXulG = function() { get_contentWindow(top).xulG = { 'docid' : g.callnumber.record() }; top.removeEventListener('load', setTopXulG, true);};
+                var setTopXulG = function() {
+                    get_contentWindow(top).xulG = { 'docid' : g.callnumber.record() };
+                    top.removeEventListener('load', setTopXulG, true);
+                };
                 top.addEventListener('load', setTopXulG, true);
                 top.setAttribute('src',urls.XUL_BIB_BRIEF);
                 top.setAttribute('flex','1');
                 var mv = $('mid_vbox'); while(mv.firstChild) mv.removeChild(mv.lastChild);
                 var mid = document.createElement('iframe'); mv.appendChild(mid);
-                var setMidXulG = function() { get_contentWindow(mid).xulG = { 'copy_id' : g.copy.id(), 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix }; mid.removeEventListener('load', setMidXulG, true);};
+                var setMidXulG = function() {
+                    get_contentWindow(mid).xulG = { 'copy_id' : g.copy.id(), 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix };
+                    mid.removeEventListener('load', setMidXulG, true);
+                };
                 mid.addEventListener('load', setMidXulG, true);
                 mid.setAttribute('src',urls.XUL_COPY_SUMMARY);
                 mid.setAttribute('flex','1');
                     iframe.setAttribute('style','overflow: none; min-height: 100px;');
                     iframe.setAttribute('flex','1');
                     gb.appendChild(iframe);
-                    var setXulG = function() { get_contentWindow(iframe).xulG = { 'circ_id' : g.circs[j].id() }; iframe.removeEventListener('load', setXulG, true);};
+                    var setXulG = function() {
+                        get_contentWindow(iframe).xulG = { 'circ_id' : g.circs[j].id() };
+                        iframe.removeEventListener('load', setXulG, true);
+                    };
                     iframe.addEventListener('load', setXulG, true);
                     iframe.setAttribute('src', urls.XUL_CIRC_BRIEF); // + '?circ_id=' + g.circs[j].id() );
                 }
index a756261..a2d520e 100644 (file)
 
                 var tb = $('top_box'); while (tb.firstChild) tb.removeChild(tb.lastChild);
                 var top = document.createElement('iframe'); tb.appendChild(top);
-                var setTopXulG = function() { get_contentWindow(top).xulG = { 'docid' : g.callnumber.record() }; top.removeEventListener('load', setTopXulG, true);};
+                var setTopXulG = function() {
+                    get_contentWindow(top).xulG = { 'docid' : g.callnumber.record() };
+                    top.removeEventListener('load', setTopXulG, true);
+                };
                 top.addEventListener('load', setTopXulG, true);
                 top.setAttribute('src',urls.XUL_BIB_BRIEF);
                 top.setAttribute('flex','1');
                 //g.data.temp_callnumber = g.callnumber; g.data.stash('temp_callnumber'); 
                 var ib = $('item_summary_box'); while(ib.firstChild) ib.removeChild(ib.lastChild);
                 var item_summary = document.createElement('iframe'); ib.appendChild(item_summary);
-                var setItemXulG = function() { get_contentWindow(item_summary).xulG = { 'copy' : g.copy, 'callnumber' : g.callnumber, 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix }; item_summary.removeEventListener('load', setItemXulG, true);};
+                var setItemXulG = function() {
+                    get_contentWindow(item_summary).xulG = { 'copy' : g.copy, 'callnumber' : g.callnumber, 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix };
+                    item_summary.removeEventListener('load', setItemXulG, true);
+                };
                 item_summary.addEventListener('load', setItemXulG, true);
                 item_summary.setAttribute('src',urls.XUL_COPY_SUMMARY);
                 item_summary.setAttribute('flex','1');
                     g.data.temp_circ = g.circ; g.data.stash('temp_circ');
                     var cb = $('circ_box'); while(cb.firstChild) cb.removeChild(cb.lastChild);
                     var circ_frame = document.createElement('iframe'); cb.appendChild(circ_frame);
-                    var setCircXulG = function() { get_contentWindow(circ_frame).xulG = { 'no_border' : 1 }; circ_frame.removeEventListener('load', setCircXulG, true);};
+                    var setCircXulG = function() {
+                        get_contentWindow(circ_frame).xulG = { 'no_border' : 1 };
+                        circ_frame.removeEventListener('load', setCircXulG, true);
+                    };
                     circ_frame.addEventListener('load', setCircXulG, true);
                     circ_frame.setAttribute('src',urls.XUL_CIRC_BRIEF);
                     circ_frame.setAttribute('flex','1');
index 7ae4fec..b863969 100644 (file)
@@ -88,7 +88,10 @@ function retrieve_circ() {
 
                 var csb = $('copy_summary_vbox'); while (csb.firstChild) csb.removeChild(csb.lastChild);
                 var copy_summary = document.createElement('iframe'); csb.appendChild(copy_summary);
-                var setXulG = function() { get_contentWindow(copy_summary).xulG = { 'circ' : r_circ, 'copy_id' : r_circ.target_copy(), 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix }; copy_summary.removeEventListener('load', setXulG, true);};
+                var setXulG = function() {
+                    get_contentWindow(copy_summary).xulG = { 'circ' : r_circ, 'copy_id' : r_circ.target_copy(), 'new_tab' : xulG.new_tab, 'url_prefix' : xulG.url_prefix };
+                    copy_summary.removeEventListener('load', setXulG, true);
+                };
                 copy_summary.addEventListener('load', setXulG, true);
                 copy_summary.setAttribute('src',urls.XUL_COPY_SUMMARY); // + '?copy_id=' + r_circ.target_copy());
                 copy_summary.setAttribute('flex','1');
index 39c84b4..087b4db 100644 (file)
@@ -50,7 +50,10 @@ function fetch_and_render_all(do_not_refresh_parent_interface) {
         } else {
             x.hidden = false;
             var bib_brief = document.createElement('iframe'); x.appendChild(bib_brief);
-            var setXulG = function() { get_contentWindow(bib_brief).xulG = { 'docid' : g.blob.mvr.doc_id() }; bib_brief.removeEventListener('load', setXulG, true);};
+            var setXulG = function() {
+                get_contentWindow(bib_brief).xulG = { 'docid' : g.blob.mvr.doc_id() };
+                bib_brief.removeEventListener('load', setXulG, true);
+            };
             bib_brief.addEventListener('load', setXulG, true);
             bib_brief.setAttribute('flex',1);
             bib_brief.setAttribute('src',urls.XUL_BIB_BRIEF);