[open-ils-commits] r18068 - trunk/Open-ILS/xul/staff_client/server/skin (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Sep 27 23:32:30 EDT 2010


Author: dbs
Date: 2010-09-27 23:32:28 -0400 (Mon, 27 Sep 2010)
New Revision: 18068

Added:
   trunk/Open-ILS/xul/staff_client/server/skin/custom.js
Log:
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.


Added: trunk/Open-ILS/xul/staff_client/server/skin/custom.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/skin/custom.js	                        (rev 0)
+++ trunk/Open-ILS/xul/staff_client/server/skin/custom.js	2010-09-28 03:32:28 UTC (rev 18068)
@@ -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';
+
+*/



More information about the open-ils-commits mailing list