fix Edit MARC Order Record action for Acquisitions within the staff client
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Jan 2010 17:01:46 +0000 (17:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Jan 2010 17:01:46 +0000 (17:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15270 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/common/li_table.js

index 43ec2e8..5bf469f 100644 (file)
@@ -1117,30 +1117,29 @@ function AcqLiTable() {
         if(openils.XUL.isXUL()) {
             win = window.open('/xul/' + openils.XUL.buildId() + '/server/cat/marcedit.xul');
         } else {
-
             win = window.open('/xul/server/cat/marcedit.xul'); 
-            var self = this;
-            win.xulG = {
-                record : {marc : li.marc()},
-                save : {
-                    label: 'Save Record', // XXX I18N
-                    func: function(xmlString) {
-                        li.marc(xmlString);
-                        fieldmapper.standardRequest(
-                            ['open-ils.acq', 'open-ils.acq.lineitem.update'],
-                            {   async: true,
-                                params: [openils.User.authtoken, li],
-                                oncomplete: function(r) {
-                                    openils.Util.readResponse(r);
-                                    win.close();
-                                    self.drawInfo(li.id())
-                                }
-                            }
-                        );
-                    },
-                }
-            };
         }
+        var self = this;
+        win.xulG = {
+            record : {marc : li.marc()},
+            save : {
+                label: 'Save Record', // XXX I18N
+                func: function(xmlString) {
+                    li.marc(xmlString);
+                    fieldmapper.standardRequest(
+                        ['open-ils.acq', 'open-ils.acq.lineitem.update'],
+                        {   async: true,
+                            params: [openils.User.authtoken, li],
+                            oncomplete: function(r) {
+                                openils.Util.readResponse(r);
+                                win.close();
+                                self.drawInfo(li.id())
+                            }
+                        }
+                    );
+                },
+            }
+        };
     }
 
     this._savePl = function(values) {