diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-14 23:53:30 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-14 23:53:30 +0000 |
commit | db7e60da32e3feba918cc819a1ef8fada6aec02a (patch) | |
tree | c29e16d739ae9696620c8a2782ceeb13895bf274 /modules/watermark/js | |
parent | c46bd97407e2eef500fa224ef7593193e3da6d18 (diff) |
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
Diffstat (limited to 'modules/watermark/js')
-rw-r--r-- | modules/watermark/js/watermark.js | 15 |
1 files changed, 15 insertions, 0 deletions
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(); + } + }); +} |