diff -r 474f8be55943 -r ab66d6d1f1f4 includes/clientside/static/faders.js --- a/includes/clientside/static/faders.js Fri Dec 07 18:47:37 2007 -0500 +++ b/includes/clientside/static/faders.js Wed Dec 19 22:55:40 2007 -0500 @@ -74,6 +74,8 @@ * onclick - an array of functions to be called on button click events * NOTE: key names are to be strings, and they must be the value of the input, CaSe-SeNsItIvE * onbeforeclick - same as onclick but called before the messagebox div is destroyed + * Methods: + * destroy: kills the running message box * Example: * var my_message = new messagebox(MB_OK|MB_ICONSTOP, 'Error logging in', 'The username and/or password is incorrect. Please check the username and retype your password'); * my_message.onclick['OK'] = function() { @@ -275,6 +277,14 @@ { this.text_area.innerHTML = text; }; + + this.destroy = function() + { + var mbdiv = document.getElementById('messageBox'); + mbdiv.parentNode.removeChild(mbdiv.nextSibling); + mbdiv.parentNode.removeChild(mbdiv); + enlighten(true); + }; //domObjChangeOpac(0, mydiv); //domObjChangeOpac(0, master_div);