From db7e60da32e3feba918cc819a1ef8fada6aec02a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 14 Dec 2008 23:53:30 +0000 Subject: Change the watermark module to use forge. Also the watermark file is now stored in varpath. and the location is stored in the module vars table --- modules/watermark/js/watermark.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/watermark/js/watermark.js (limited to 'modules/watermark/js') diff --git a/modules/watermark/js/watermark.js b/modules/watermark/js/watermark.js new file mode 100644 index 00000000..66a7b274 --- /dev/null +++ b/modules/watermark/js/watermark.js @@ -0,0 +1,15 @@ +$("document").ready(function() { + ajaxify_form(); +}); + +function ajaxify_form() { + $("#gUploadWatermarkForm").ajaxForm({ + complete:function(xhr, statusText) { + $("#gUploadWatermarkForm").replaceWith(xhr.responseText); + if (xhr.status == 200) { + $("#gUploadWatermarkForm").clearForm(); + } + ajaxify_form(); + } + }); +} -- cgit v1.2.3