re-introducing sound effects. Need to put them everywhere :)
[Evergreen.git] / Open-ILS / xul / staff_client / chrome / content / util / error.js
index cb2ff16..fccfaac 100644 (file)
@@ -16,6 +16,8 @@ util.error = function () {
 
        this.OpenILS = {};
 
+       JSAN.use('util.sound'); this.sound = new util.sound();
+
        return this;
 };
 
@@ -215,6 +217,8 @@ util.error.prototype = {
 
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
+               this.sound.bad();
+
                // get a reference to the prompt service component.
                var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
                        .getService(Components.interfaces.nsIPromptService);