if we try to share xulG._sound from window 1 with window 2, and window 1 is destroyed, the sound object no longer works correctly (it loses reference to the 'urls' variable and cannot find the sounds to play). May try a common sound file from data.xul later. As it is now, sound behavior between window 1 and window 2 is slightly different with fancy prompt on my workstation. In window 2, a sound queued before fancy prompt starts to play before the popup and then gets clipped. In window 1, the fancy prompt sound obj takes over the queue and plays the sound without clipping
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16294
dcc99617-32d9-48b4-a31d-
7c20da2025e4
offlineStrings = document.getElementById('offlineStrings');
JSAN.use('util.error'); this.error = new util.error();
JSAN.use('util.window'); this.window = new util.window();
- JSAN.use('util.sound'); this.sound = new util.sound();
+ JSAN.use('util.sound'); this.sound = new util.sound({'interval':500,'sig':'menu_constructor'});
JSAN.use('OpenILS.data'); this.data = new OpenILS.data(); this.data.init({'via':'stash'});
this.w = window;
'chrome,resizable');
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
mframe.xulG = xulG;
+ /* This window should get its own objects for these */
+ delete mframe.xulG['_sound']; delete mframe.xulG['_data'];
}
],
'cmd_new_tab' : [
+ '?server='+window.escape(xulG.url),
'main'+xulG.window.window_name_increment(),'chrome,resizable'
);
+ delete xulG['_sound']; // This came from util.error but I want menu.js to have its own
mframe.xulG = xulG; // This is the xulG from main.js, with auth, url, and window
} catch(E) {
alert(E);