better, because we're not storing the hostname in constants.js
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Mar 2006 16:34:41 +0000 (16:34 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 14 Mar 2006 16:34:41 +0000 (16:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3354 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/chrome/content/util/sound.js

index 3ab929b..a4aaa83 100644 (file)
@@ -67,8 +67,6 @@ var api = {
 
 var urls = {
 
-       'remote' : 'http://dev.gapines.org/',
-
        'opac' : '/opac/en-US/skin/default/xml/advanced.xml',
        'opac_rdetail' : '/opac/en-US/skin/default/xml/rdetail.xml',
        'browser' : '/opac/en-US/skin/default/xml/advanced.xml',
index 4d22199..b1b6ef6 100644 (file)
@@ -38,7 +38,8 @@ util.sound.prototype = {
                try {
                        netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        var obj = this;
-                       var url2 = obj.xp_url_init( urls.remote + url );
+                       JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
+                       var url2 = obj.xp_url_init( data.server + url );
                        dump('url = ' + url2 + '\n');
                        obj.SOUND.play( url2 );
                } catch(E) {