Skip to content

Instantly share code, notes, and snippets.

@vincentdeelen
Created November 17, 2013 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdeelen/7516812 to your computer and use it in GitHub Desktop.
Save vincentdeelen/7516812 to your computer and use it in GitHub Desktop.
/* ====================================================
// FUNCTION autoFadeSucces
//
// This function is an overload of the native APEX
// function autoFadeSuccess.
// The overload is used to get better control over
// the display time of custom made success messages
//
// ---------------------------------------------------
// Change History
// version Name Date Description
// ---------------------------------------------------
// 0.1 V.Deelen 2013.09.24 Creation
// ==================================================*/
autoFadeSuccess = function(){
setTimeout(function(){
apex.jQuery("#uSuccessMessage").animate({
height: 0, opacity: 0
}, 2500, function(){
apex.jQuery(this).remove();
})
},4000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment