make the Javascript Shell environment more closely resemble that of the xul interface...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 May 2010 08:33:50 +0000 (08:33 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 May 2010 08:33:50 +0000 (08:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16367 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/shell.html

index b4ea42a..32a7cc2 100644 (file)
@@ -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>