Permalink
Browse files

(Bug 4780) Add a "success" call which fades away automatically

  • Loading branch information...
afuna committed Oct 24, 2012
1 parent 105b829 commit 3d1516c478c85f88c86ffb13ba9ea44ba54f239b
Showing with 8 additions and 0 deletions.
  1. +8 −0 htdocs/js/jquery.ajaxtip.js
@@ -37,6 +37,14 @@ $.widget("dw.ajaxtip", $.ui.tooltip, {
this.option("content", msg);
this.open();
},
+ success: function(msg) {
+ var self = this;
+ self.option("content", msg);
+ self.open();
+
+ // this is only a confirmation message. We can fade away quickly
+ window.setTimeout( function() { self.close(); }, 1500 );
+ },
load: function(opts) {
/* opts contains overrides
*

0 comments on commit 3d1516c

Please sign in to comment.