Disable Save Columns in xul holds interface when Hold Details is being viewed. https...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Apr 2011 21:13:04 +0000 (21:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Apr 2011 21:13:04 +0000 (21:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20292 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/holds.js

index edf589b..085c54a 100644 (file)
@@ -238,6 +238,7 @@ patron.holds.prototype = {
                                     n.setAttribute('toggle','0');
                                     n.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.label'));
                                     n.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.accesskey'));
                                     n.setAttribute('toggle','0');
                                     n.setAttribute('label', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.label'));
                                     n.setAttribute('accesskey', document.getElementById("circStrings").getString('staff.circ.holds.alt_view.accesskey'));
+                                    obj.controller.view.save_columns.setAttribute('disabled','false');
                                 } else {
                                     document.getElementById('deck').selectedIndex = 1;
                                     n.setAttribute('toggle','1');
                                 } else {
                                     document.getElementById('deck').selectedIndex = 1;
                                     n.setAttribute('toggle','1');
@@ -253,6 +254,7 @@ patron.holds.prototype = {
                                     f.xulG = xulG;
                                     f.xulG.clear_and_retrieve = function() { obj.clear_and_retrieve(); };
                                     f.fetch_and_render_all(true);
                                     f.xulG = xulG;
                                     f.xulG.clear_and_retrieve = function() { obj.clear_and_retrieve(); };
                                     f.fetch_and_render_all(true);
+                                    obj.controller.view.save_columns.setAttribute('disabled','true');
                                 }
                             } catch(E) {
                                 alert('Error in holds.js, cmd_alt_view handler: ' + E);
                                 }
                             } catch(E) {
                                 alert('Error in holds.js, cmd_alt_view handler: ' + E);