[open-ils-commits] r16367 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat May 1 04:33:55 EDT 2010
Author: phasefx
Date: 2010-05-01 04:33:50 -0400 (Sat, 01 May 2010)
New Revision: 16367
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/shell.html
Log:
make the Javascript Shell environment more closely resemble that of the xul interfaces (JSAN loaded, utility functions and constants loaded, and network and error objects pre-configured)
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/shell.html
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/shell.html 2010-05-01 05:42:41 UTC (rev 16366)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/shell.html 2010-05-01 08:33:50 UTC (rev 16367)
@@ -5,9 +5,25 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>JavaScript Shell 1.4</title>
+<script type="text/javascript" src="/xul/server/main/JSAN.js" />
+<script type="text/javascript" src="/xul/server/main/constants.js" />
+<script type="text/javascript" src="/xul/server/OpenILS/global_util.js" />
+<script type="text/javascript" src="/xul/server/OpenILS/data.js" />
+<script type="text/javascript" src="/xul/server/util/network.js" />
+<script type="text/javascript" src="/xul/server/util/error.js" />
<script>var djConfig = { 'baseUrl' : '/js/dojo/dojo/',parseOnLoad: true,isDebug:false };</script>
<script type="text/javascript" src="/js/dojo/dojo/dojo.js" />
-<script>try { dojo.require('fieldmapper.AutoIDL'); } catch(E) { alert(E); }</script>
+<script>
+ try {
+ dojo.require('fieldmapper.AutoIDL');
+ JSAN.addRepository('/xul/server/');
+ JSAN.use('util.error'); var error = new util.error();
+ JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.stash_retrieve();
+ JSAN.use('util.network'); var network = new util.network();
+ } catch(E) {
+ alert(E);
+ }
+</script>
<script type="text/javascript" src="shell.js"></script>
More information about the open-ils-commits
mailing list