PHRAS-3148 : unbind click on populate buton

This commit is contained in:
Harrys Ravalomanana
2020-07-02 14:29:39 +04:00
parent e01daeed8c
commit 2b432e2a8f

View File

@@ -226,7 +226,7 @@
<p><span class="alert alert-message"> {{ 'thesaurus:: confirm populate' | trans }}</span></p>
<div class="thesaurus_confirm_bottom_block">
<input type="button" class="cancel_button cancel_btn" value="{{ 'boutton::annuler' | trans }}" >
<input type="button" id="confirm_populate_button" class="validate_btn" value="{{ 'boutton::valider' | trans }}" >
<input type="submit" id="confirm_populate_button" class="validate_btn" value="{{ 'boutton::valider' | trans }}" >
</div>
</div>
</div>
@@ -1521,8 +1521,9 @@
*/
$(document).ready(function () {
/**Populate btn action**/
$('#populate_btn').click(function (e) {
$('#populate_btn').bind('click', function (e) {
e.preventDefault();
$("#confirm_populate").dialog({
modal: true,
@@ -1543,7 +1544,8 @@
}
});
$("#confirm_populate").dialog('open');
$('#confirm_populate_button').click(function () {
$('#confirm_populate_button').unbind('click').bind('click', function (e) {
e.preventDefault();
$.ajax({
type: 'GET',
url: '/admin/worker-manager/populate-status',
@@ -1570,6 +1572,7 @@
});
})
});
})
</script>
</body>