Skip to content

Instantly share code, notes, and snippets.

@low
Created May 22, 2010 11:58
Show Gist options
  • Save low/410022 to your computer and use it in GitHub Desktop.
Save low/410022 to your computer and use it in GitHub Desktop.
Sets default EE notice and closes it after 2 seconds
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