Disable buttons while form submission is in progress
This commit is contained in:
parent
e2f1d6017d
commit
c0ee3f65bb
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,8 @@ $(document).ready(function () {
|
|||
function createNote(feature, form) {
|
||||
var location = unproj(feature.geometry.getBounds().getCenterLonLat());
|
||||
|
||||
$(form).find("input[type=submit]").prop("disabled", true);
|
||||
|
||||
$.ajax($("#createnoteanchor").attr("href"), {
|
||||
type: "POST",
|
||||
data: {
|
||||
|
@ -42,6 +44,8 @@ $(document).ready(function () {
|
|||
function updateNote(feature, form, close) {
|
||||
var url = close ? feature.attributes.close_url : feature.attributes.comment_url;
|
||||
|
||||
$(form).find("input[type=submit]").prop("disabled", true);
|
||||
|
||||
$.ajax(url, {
|
||||
type: "POST",
|
||||
data: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue