Blame view
app/js/demo/notifications.js
1.89 KB
feacde5ff
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
$(function () { /*-------------------------------------------------- Plugin: Lightbox --------------------------------------------------*/ $('.lightbox-type').lightbox (); /*-------------------------------------------------- Plugin: Msg Growl --------------------------------------------------*/ $('.growl-type').live ('click', function (e) { $.msgGrowl ({ type: $(this).attr ('data-type') , title: 'Header' , text: 'Lorem ipsum dolor sit amet, consectetur ipsum dolor sit amet, consectetur.' }); }); /*-------------------------------------------------- Plugin: Msg Box --------------------------------------------------*/ $('.msgbox-alert').live ('click', function (e) { $.msgbox("The selection includes process white objects. Overprinting such objects is only useful in combination with transparency effects."); }); $('.msgbox-info').live ('click', function (e) { $.msgbox("jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.", {type: "info"}); }); $('.msgbox-error').live ('click', function (e) { $.msgbox("An error 1053 ocurred while perfoming this service operation on the MySql Server service.", {type: "error"}); }); $('.msgbox-confirm').live ('click', function (e) { $.msgbox("Are you sure that you want to permanently delete the selected element?", { type: "confirm", buttons : [ {type: "submit", value: "Yes"}, {type: "submit", value: "No"}, {type: "cancel", value: "Cancel"} ] }, function(result) { $("#result2").text(result); }); }); $('.msgbox-prompt').live ('click', function (e) { $.msgbox("Insert your name below:", { type: "prompt" }, function(result) { if (result) { alert("Hello " + result); } }); }); }); |