marced.js fixes
authorberick <berick@esilibrary.com>
Thu, 26 May 2011 19:18:29 +0000 (15:18 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 13:07:17 +0000 (09:07 -0400)
Load dojo class before use.
Load in my_init(), before which dojo is not defined

Signed-off-by: berick <berick@esilibrary.com>
Open-ILS/xul/staff_client/server/cat/marcedit.js

index deb2ee3..f05eba4 100644 (file)
@@ -42,7 +42,7 @@ var show_auth_menu = false;
 
 function $(id) { return document.getElementById(id); }
 
-var acs = new openils.AuthorityControlSet ();
+var acs; // AuthorityControlSet
 
 function mangle_005() {
     var now = new Date();
@@ -155,6 +155,9 @@ function my_init() {
         JSAN.errorLevel = "die"; // none, warn, or die
         JSAN.addRepository('/xul/server/');
 
+        dojo.require('openils.AuthorityControlSet');
+        acs = new openils.AuthorityControlSet ();
+
         // Fake xulG for standalone...
         try {
             window.xulG.record;