Skip to content
Browse files

disposable alert not done yet

  • Loading branch information...
1 parent 4a10bca commit 02b06c88a4a697c420df077e84831942aef4b5fe @fetmar fetmar committed
Showing with 4 additions and 2 deletions.
  1. +3 −1 app/_attachments/utils.coffee
  2. +1 −1 app/_attachments/utils.js
View
4 app/_attachments/utils.coffee
@@ -77,6 +77,8 @@ class Utils
$.couch.replicate Tangerine.iris.host + "/tangerine", "tangerine", { success: (a, b) -> console.log [" success",a, b];}, repOps
# console.log # @importSubtestsFromIris()
- @disposableAlert: (alert_text) ->
+ # Disposable alert
+ # @param pause miliseconds to leave message on screen, 0 means it will stay until clicked
+ @disposableAlert: (alert_text, opt) ->
$("<div class='disposable_alert'>#{alert_text}</div>").appendTo("#content").topCenter().delay(2000).fadeOut(250, -> $(this).remove())
View
2 app/_attachments/utils.js
@@ -123,7 +123,7 @@ Utils = (function() {
}, repOps);
};
- Utils.disposableAlert = function(alert_text) {
+ Utils.disposableAlert = function(alert_text, opt) {
return $("<div class='disposable_alert'>" + alert_text + "</div>").appendTo("#content").topCenter().delay(2000).fadeOut(250, function() {
return $(this).remove();
});

0 comments on commit 02b06c8

Please sign in to comment.
Something went wrong with that request. Please try again.