Sinewave animation for pending requests
Tryin it on for size. // FREEBIE
This commit is contained in:
parent
1065502770
commit
c77391b3f2
5 changed files with 45 additions and 0 deletions
|
@ -139,9 +139,12 @@
|
|||
},
|
||||
|
||||
send: function(promise) {
|
||||
this.trigger('pending');
|
||||
return promise.then(function() {
|
||||
this.trigger('done');
|
||||
this.save({sent: true});
|
||||
}.bind(this)).catch(function(errors) {
|
||||
this.trigger('done');
|
||||
this.set({sent: true});
|
||||
this.saveErrors(errors);
|
||||
}.bind(this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue