From: phasefx Date: Sun, 19 Sep 2010 22:44:16 +0000 (+0000) Subject: remove redundant invocation of custom.js, and tweak how menu.js loads it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=58a194579a53e8e82221ab3abcfd4c5420124ec1;p=contrib%2FConifer.git remove redundant invocation of custom.js, and tweak how menu.js loads it git-svn-id: svn://svn.open-ils.org/ILS/trunk@17819 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index d7293f72d2..aa53ed70d0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -54,19 +54,19 @@ main.menu.prototype = { 'init' : function( params ) { + var obj = this; + urls.remote = params['server']; // Pull in local customizations var r = new XMLHttpRequest(); - r.open("GET", url_prefix('/xul/server/skin/custom.js'), false); + r.open("GET", obj.url_prefix('/xul/server/skin/custom.js'), false); r.send(null); if (r.status == 200) { dump('Evaluating /xul/server/skin/custom.js\n'); eval( r.responseText ); } - var obj = this; - var button_bar = String( obj.data.hash.aous['ui.general.button_bar'] ) == 'true'; if (button_bar) { var x = document.getElementById('main_toolbar'); diff --git a/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul b/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul index c5b669ea07..297cc6aad6 100644 --- a/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul +++ b/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul @@ -13,7 +13,6 @@