summaryrefslogtreecommitdiff
path: root/modules/watermark/js/watermark.js
blob: 66a7b2746bafe375dd272217a3f4b1baefabc1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
    }
  });
}