From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 28 Sep 2010 03:32:28 +0000 (+0000)
Subject: Add a placeholder server/skin/custom.js to prevent one error in JS console
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=65de3995904caccbe431e268dacacbc43c5c973c;p=evergreen%2Fmasslnc.git

Add a placeholder server/skin/custom.js to prevent one error in JS console

custom.js enables you to override the settings in the stock constants.js
to skin the behaviour of your staff client at your installation, without
being subject to grief at upgrade time.

Not having a custom.js file at all was, however, causing errors to be generated
in the JS console as XULRunner tried hard to parse the 404 message as
JavaScript. I suppose one could have changed the 404 message to valid
JavaScript... naw, that would be evil.


git-svn-id: svn://svn.open-ils.org/ILS/trunk@18068 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/server/skin/custom.js b/Open-ILS/xul/staff_client/server/skin/custom.js
new file mode 100644
index 0000000000..a71d7a063d
--- /dev/null
+++ b/Open-ILS/xul/staff_client/server/skin/custom.js
@@ -0,0 +1,9 @@
+/* Settings here override default values from constants.js;for example:
+ 
+    urls['AUDIO_good'] = '/xul/server/skin/media/custom/good.wav';
+    urls['opac'] = '/opac/' + LOCALE + '/skin/mylib/xml/advanced.xml?nps=1';
+    urls['opac_rdetail'] = '/opac/' + LOCALE + '/skin/mylib/xml/rdetail.xml';
+    urls['opac_rresult'] = '/opac/' + LOCALE + '/skin/mylib/xml/rresult.xml';
+    urls['browser'] = '/opac/' + LOCALE + '/skin/mylib/xml/advanced.xml?nps=1';
+
+*/