Created
May 22, 2010 11:58
-
-
Save low/410022 to your computer and use it in GitHub Desktop.
Sets default EE notice and closes it after 2 seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _ee_notice($msg) | |
{ | |
$this->EE->javascript->output(array( | |
'$.ee_notice("'.$this->EE->lang->line($msg).'",{type:"success",open:true});', | |
'window.setTimeout(function(){$.ee_notice.destroy()}, 2000);' | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment