From 5fd97985885340d77d3812862b380aa965b51cd5 Mon Sep 17 00:00:00 2001 From: jseidelin Date: Mon, 20 Jun 2011 01:54:13 +0200 Subject: [PATCH] add revert action to jquery wrapper --- pixastic.jquery.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pixastic.jquery.js b/pixastic.jquery.js index 4acd03e..3376b51 100755 --- a/pixastic.jquery.js +++ b/pixastic.jquery.js @@ -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);