prevent duplicate rows in patron holds interface
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Apr 2008 03:41:02 +0000 (03:41 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Apr 2008 03:41:02 +0000 (03:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9216 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e3f2685..0f8a4c3 100644 (file)
@@ -726,7 +726,7 @@ patron.holds.prototype = {
                         ['command'],
                         function() {
                             obj.pull_from_shelf_interface.current.offset += obj.pull_from_shelf_interface.current.limit;
-                            obj.retrieve();
+                            obj.retrieve(true);
                         }
                     ],
                     'lib_filter_checkbox' : [
@@ -778,7 +778,7 @@ patron.holds.prototype = {
                     if (obj.controller.view.lib_menu) obj.controller.view.lib_menu.disabled = true;
                 }
                 obj.controller.render();
-                obj.retrieve();
+                obj.retrieve(true);
 
                 obj.controller.view.cmd_retrieve_patron.setAttribute('disabled','true');
                 obj.controller.view.cmd_holds_edit_pickup_lib.setAttribute('disabled','true');
index 9d04847..baddc14 100644 (file)
@@ -50,7 +50,7 @@
                                                'pull' : xul_param('pull'),
                                        } 
                                );
-                               window.refresh = function(p) { g.holds.retrieve(p); }
+                               window.refresh = function(p) { g.holds.list.clear(); g.holds.retrieve(p); }
 
                                default_focus();