add revert action to jquery wrapper
This commit is contained in:
parent
0845d479b3
commit
5fd9798588
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ if (typeof jQuery != "undefined" && jQuery && jQuery.fn) {
|
|||
if (this.tagName.toLowerCase() == "img" && !this.complete) {
|
||||
return;
|
||||
}
|
||||
if (action === "revert") {
|
||||
var res = Pixastic.revert(this);
|
||||
} else {
|
||||
var res = Pixastic.process(this, action, options);
|
||||
}
|
||||
var res = Pixastic.process(this, action, options);
|
||||
if (res) {
|
||||
newElements.push(res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue