mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-26 10:03:11 -04:00
Fix double submit after focusing OK button (#1309)
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="dist/style.css"/>
|
||||
<!-- end mincss template tags -->
|
||||
<!-- start minjs template tags -->
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=88dbff2d6f"></script>
|
||||
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=cb34f35a8d"></script>
|
||||
<!-- end minjs template tags -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
4
public/dist/opensourcepos.min.js
vendored
4
public/dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -17,6 +17,7 @@
|
||||
if (button_id == 'submit') {
|
||||
$('form', dlog_ref.$modalBody).first().submit();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -256,7 +257,6 @@
|
||||
var submit_handler = function(url) {
|
||||
return function (resource, response) {
|
||||
var id = response.id;
|
||||
|
||||
if (!response.success) {
|
||||
$.notify(response.message, { type: 'danger' });
|
||||
} else {
|
||||
@@ -287,6 +287,7 @@
|
||||
}
|
||||
$.notify(message, {type: 'success' });
|
||||
}
|
||||
return false;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user