Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Edited plugin/src/main/resources/packages/shared/speakeasy/messages.j…

…s via GitHub
  • Loading branch information...
commit e7da1eede3b4d44cffece1b1dc4dec46814593d3 1 parent 321efd9
seancurtis authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugin/src/main/resources/packages/shared/speakeasy/messages.js
View
6 plugin/src/main/resources/packages/shared/speakeasy/messages.js
@@ -18,12 +18,12 @@ function addMessage(type, params) {
AJS.messages.error(params);
}
- var msg = $("#aui-message-bar").children(".aui-message");
- window.setTimeout(function() { msg.fadeOut(1500) }, 5000);
+ var msg = $("#aui-message-bar");
+ window.setTimeout(function() { msg.fadeOut(1500, clear) }, 5000); // Check syntax of the callback for fadeOut
}
function clear() {
- $("#aui-message-bar").children(".aui-message").remove();
+ $("#aui-message-bar").empty().remove();
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.