First workround to try to keep manage authoritties from needing a reload collab/ysuarez/manage_authorities_reload_fix
authorYamil Suarez <yamil@yamil.com>
Mon, 29 Sep 2014 18:58:49 +0000 (14:58 -0400)
committerYamil Suarez <yamil@yamil.com>
Mon, 29 Sep 2014 18:58:49 +0000 (14:58 -0400)
After hitting "save" on an authority record (editor window), this fix
llows other records to be opened for editing. I on't think this is the
best solution/apporach. Only an experiment.

Signed-off-by: Yamil Suarez <yamil@yamil.com>
Open-ILS/web/js/ui/default/cat/authority/list.js

index 4c42b90..946d074 100644 (file)
@@ -112,6 +112,7 @@ function displayAuthorities(data) {
 
         // "Edit" menu item
         new dijit.MenuItem({"id": "edit_" + auth.id, "onClick": function(){
+            pcrud = new openils.PermaCrud();
             var auth_rec = pcrud.retrieve("are", auth.id);
             if (auth_rec) {
                 loadMarcEditor(pcrud, auth_rec);