资 源 简 介
Solves the problem of visual notify of the reaction to user actions.
In other words: change some state of the object - to bring the message of the successful completion of saving changes to the database / system.
Example, which shows the functional plug-in:
var msgObj = $.notify.add("Saving", 3); //Push new message in the stack about begining (duration 3 sec) and put this message pointer in msgObj$.get("/test.php", function (result) { if (result.ok) { //if the request is successful $.notify.remove(msgObj, 0.5); //Pop prev. message after 0,5 sec, assume that the request could be executed faster than 3 seconds $.notify.add("Saved complete", 1); //and push new message in the stack } else { //if the request fail $.notify.remove(m