From: phasefx Date: Wed, 22 Jul 2009 03:55:35 +0000 (+0000) Subject: example of getting dojo and PermaCrud to work with xul X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6f7d478c6cef481d43be6c7e424ee9e1db231a7c;p=evergreen%2Ftadl.git example of getting dojo and PermaCrud to work with xul git-svn-id: svn://svn.open-ils.org/ILS/trunk@13679 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/external/dojo_template.js b/Open-ILS/xul/staff_client/external/dojo_template.js new file mode 100644 index 0000000000..a3bac8fae4 --- /dev/null +++ b/Open-ILS/xul/staff_client/external/dojo_template.js @@ -0,0 +1,44 @@ +var error; + +function my_init() { + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); } + JSAN.errorLevel = "die"; // none, warn, or die + JSAN.addRepository('/xul/server/'); + JSAN.use('util.error'); error = new util.error(); + error.sdump('D_TRACE','my_init() for main_test.xul'); + + /* these were not working as + + +