##// END OF EJS Templates
Lock form while computing PoW
neko259 -
r1448:ee8a1842 default
parent child Browse files
Show More
@@ -72,6 +72,7 b' function addHiddenInput(form, name, valu'
72
72
73 form.submit();
73 form.submit();
74 form.find('input[type=submit]').toggle();
74 form.find('input[type=submit]').toggle();
75 $("#form :input").prop('readonly', false);
75 };
76 };
76
77
77 var form = $('#form');
78 var form = $('#form');
@@ -79,6 +80,7 b' function addHiddenInput(form, name, valu'
79 submitButton.click(function() {
80 submitButton.click(function() {
80 showAsErrors(form, gettext('Computing PoW...'));
81 showAsErrors(form, gettext('Computing PoW...'));
81 submitButton.toggle();
82 submitButton.toggle();
83 $("#form :input").prop('readonly', true);
82
84
83 var msg = $('textarea').val().trim();
85 var msg = $('textarea').val().trim();
84
86
General Comments 0
You need to be logged in to leave comments. Login now