changeset 2724:7c0cefe454cd

Removed warning prompt in modify view when user clicks save button
author Ajitesh Gupta <ajgupta93@gmail.com>
date Fri, 15 Aug 2014 02:32:39 +0530
parents ebc41545962a
children f94b80842ada
files MoinMoin/static/js/common.js
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/js/common.js	Fri Aug 15 02:30:22 2014 +0530
+++ b/MoinMoin/static/js/common.js	Fri Aug 15 02:32:39 2014 +0530
@@ -667,7 +667,11 @@
     $('.moin-sortable').tablesorter();
 
     $('#moin-modify').on('change keyup keydown', 'input, textarea, select', function (e) {
-        $(this).addClass('moin-changed-input');
+        $('#moin-modify').addClass('moin-changed-input');
+    });
+
+    $('#moin-save-text-button').on('click', function() {
+        $('#moin-modify').removeClass('moin-changed-input');
     });
 
     $(window).on('beforeunload', function() {