Quasi-backport fixes a bug whereby the copy browser does not
authorJames Fournie <jfournie@sitka.bclibraries.ca>
Wed, 16 Nov 2011 01:06:48 +0000 (17:06 -0800)
committerJason Etheridge <jason@esilibrary.com>
Fri, 18 Nov 2011 15:40:50 +0000 (10:40 -0500)
automatically refresh after adding volumes.  This bug is fixed
in future versions by git commit bcd6f20b but the bugfix itself
is not noted in that commit message.

Signed-off-by: James Fournie <jfournie@sitka.bclibraries.ca>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/cat/copy_browser.js

index 4be4ca0..8f55d8c 100644 (file)
@@ -295,7 +295,7 @@ cat.copy_browser.prototype = {
                                             'doc_id' : obj.docid, 
                                             'ou_ids' : list, 
                                             'copy_shortcut' : copy_shortcut,
-                                            'refresh' : function() { obj.refresh_list(); }
+                                            'onrefresh' : function() { obj.refresh_list(); }
                                         }
                                     );
                                 } catch(E) {
@@ -539,7 +539,7 @@ cat.copy_browser.prototype = {
                                     var w = xulG.new_tab(
                                         window.xulG.url_prefix(urls.XUL_VOLUME_COPY_CREATOR),
                                         { 'tab_name' : title },
-                                        { 'doc_id' : obj.docid, 'ou_ids' : list, 'refresh' : function() { obj.refresh_list(); } }
+                                        { 'doc_id' : obj.docid, 'ou_ids' : list, 'onrefresh' : function() { obj.refresh_list(); } }
                                     );
 
                                 } catch(E) {