From 65de3995904caccbe431e268dacacbc43c5c973c Mon Sep 17 00:00:00 2001
From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 28 Sep 2010 03:32:28 +0000
Subject: [PATCH] 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
---
 Open-ILS/xul/staff_client/server/skin/custom.js | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 Open-ILS/xul/staff_client/server/skin/custom.js

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';
+
+*/
-- 
2.11.0