From e1c6dcbf71a4dfd5f2c3143645b5ba22e2980bca Mon Sep 17 00:00:00 2001 From: berick Date: Thu, 26 May 2011 15:18:29 -0400 Subject: [PATCH] marced.js fixes Load dojo class before use. Load in my_init(), before which dojo is not defined Signed-off-by: berick --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index deb2ee362a..f05eba47af 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -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; -- 2.11.0