X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=third-party%2Fjquery-notify-1.5%2Fjquery.notify.min.js;fp=third-party%2Fjquery-notify-1.5%2Fjquery.notify.min.js;h=4a076e1ba5d849354bfefe708998398ef17f835d;hb=ed18f1b119ffd1796522ea4b53d84449d30ec854;hp=0000000000000000000000000000000000000000;hpb=5abab265d806d9de899ead6e896feb4afdf20540;p=myslice.git diff --git a/third-party/jquery-notify-1.5/jquery.notify.min.js b/third-party/jquery-notify-1.5/jquery.notify.min.js new file mode 100644 index 00000000..4a076e1b --- /dev/null +++ b/third-party/jquery-notify-1.5/jquery.notify.min.js @@ -0,0 +1,12 @@ +/* jQuery Notify UI Widget 1.5 by Eric Hynds + * http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widget/ + * + * Depends: + * - jQuery 1.4 + * - jQuery UI 1.8 widget factory + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html +*/ +(function(d){d.widget("ech.notify",{options:{speed:500,expires:5E3,stack:"below",custom:!1,queue:!1},_create:function(){var a=this;this.templates={};this.keys=[];this.element.addClass("ui-notify").children().addClass("ui-notify-message ui-notify-message-style").each(function(b){b=this.id||b;a.keys.push(b);a.templates[b]=d(this).removeAttr("id").wrap("
").parent().html()}).end().empty().show()},create:function(a,b,c){"object"===typeof a&&(c=b,b=a,a=null);a=this.templates[a||this.keys[0]];c&&c.custom&&(a=d(a).removeClass("ui-notify-message-style").wrap("
").parent().html());this.openNotifications=this.openNotifications||0;return(new d.ech.notify.instance(this))._create(b,d.extend({},this.options,c),a)}});d.extend(d.ech.notify,{instance:function(a){this.__super=a;this.isOpen=!1}});d.extend(d.ech.notify.instance.prototype,{_create:function(a,b,c){this.options=b;var e=this,c=c.replace(/#(?:\{|%7B)(.*?)(?:\}|%7D)/g,function(b,c){return c in a?a[c]:""}),c=this.element=d(c),f=c.find(".ui-notify-close");"function"===typeof this.options.click&&c.addClass("ui-notify-click").bind("click",function(a){e._trigger("click",a,e)});f.length&&f.bind("click",function(){e.close();return!1});this.__super.element.queue("notify",function(){e.open();"number"===typeof b.expires&&0