add revert action to jquery wrapper

This commit is contained in:
jseidelin 2011-06-20 01:54:13 +02:00
parent 0845d479b3
commit 5fd9798588

View file

@ -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);