mirror of https://github.com/snachodog/mybuddy.git
Fixed duplicate data/form-submit from double click
This commit is contained in:
parent
95a2cdf06d
commit
187d2226e0
|
@ -59,3 +59,10 @@ BabyBuddy.PullToRefresh = function(ptr) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}(PullToRefresh);
|
}(PullToRefresh);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix for duplicate form submission from double pressing submit
|
||||||
|
*/
|
||||||
|
$("form").on("submit", function() {
|
||||||
|
$(this).find("button[type='submit']").prop('disabled', true);
|
||||||
|
});
|
|
@ -60,6 +60,13 @@ BabyBuddy.PullToRefresh = function(ptr) {
|
||||||
};
|
};
|
||||||
}(PullToRefresh);
|
}(PullToRefresh);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix for duplicate form submission from double pressing submit
|
||||||
|
*/
|
||||||
|
$("form").on("submit", function() {
|
||||||
|
$(this).find("button[type='submit']").prop('disabled', true);
|
||||||
|
});
|
||||||
|
|
||||||
/* Baby Buddy Timer
|
/* Baby Buddy Timer
|
||||||
*
|
*
|
||||||
* Uses a supplied ID to run a timer. The element using the ID must have
|
* Uses a supplied ID to run a timer. The element using the ID must have
|
||||||
|
|
|
@ -60,6 +60,13 @@ BabyBuddy.PullToRefresh = function(ptr) {
|
||||||
};
|
};
|
||||||
}(PullToRefresh);
|
}(PullToRefresh);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fix for duplicate form submission from double pressing submit
|
||||||
|
*/
|
||||||
|
$("form").on("submit", function() {
|
||||||
|
$(this).find("button[type='submit']").prop('disabled', true);
|
||||||
|
});
|
||||||
|
|
||||||
/* Baby Buddy Timer
|
/* Baby Buddy Timer
|
||||||
*
|
*
|
||||||
* Uses a supplied ID to run a timer. The element using the ID must have
|
* Uses a supplied ID to run a timer. The element using the ID must have
|
||||||
|
|
Loading…
Reference in New Issue