Add modal init in postBody bstables callback (#563)

This commit is contained in:
jekkos
2016-05-20 17:13:34 +02:00
parent 671f6d9e16
commit 41b3d00fb2
7 changed files with 14 additions and 10 deletions

View File

@@ -61,10 +61,10 @@
<!-- start mincss template tags -->
<link rel="stylesheet" type="text/css" href="dist/bootstrap.min.css?rel=9ed20b1ee8"/>
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=54122a95de"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=709203adf0"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=a380df4051" language="javascript"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=086db78c1a" language="javascript"></script>
<!-- end minjs template tags -->
<?php endif; ?>

View File

@@ -5,7 +5,7 @@
display: none !important;
}
#receipt_wrapper
#receipt_wrapper, #table
{
/*background-color:#FFFFFF;*/
font-size:75%;

View File

@@ -44714,7 +44714,6 @@ THE SOFTWARE.*/
return function(response) {
typeof options.load_callback == 'function' && options.load_callback();
options.load_callback = undefined;
dialog_support.init("a.modal-dlg, button.modal-dlg");
typeof callback == 'function' && callback.call(this, response);
}
};
@@ -44752,6 +44751,9 @@ THE SOFTWARE.*/
onCheckAll: enable_actions,
onUncheckAll: enable_actions,
onLoadSuccess: load_success(options.onLoadSuccess),
onPostBody: function() {
dialog_support.init("a.modal-dlg, button.modal-dlg");
},
onColumnSwitch : function(field, checked) {
var user_settings = localStorage[options.employee_id];
user_settings = (user_settings && JSON.parse(user_settings)) || {};

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -181,7 +181,6 @@
return function(response) {
typeof options.load_callback == 'function' && options.load_callback();
options.load_callback = undefined;
dialog_support.init("a.modal-dlg, button.modal-dlg");
typeof callback == 'function' && callback.call(this, response);
}
};
@@ -219,6 +218,9 @@
onCheckAll: enable_actions,
onUncheckAll: enable_actions,
onLoadSuccess: load_success(options.onLoadSuccess),
onPostBody: function() {
dialog_support.init("a.modal-dlg, button.modal-dlg");
},
onColumnSwitch : function(field, checked) {
var user_settings = localStorage[options.employee_id];
user_settings = (user_settings && JSON.parse(user_settings)) || {};

View File

@@ -61,11 +61,11 @@
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/bootstrap.min.css?rel=9ed20b1ee8"/>
<!-- start mincss template tags -->
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=54122a95de"/>
<link rel="stylesheet" type="text/css" href="dist/opensourcepos.min.css?rel=709203adf0"/>
<!-- end mincss template tags -->
<link rel="stylesheet" type="text/css" href="templates/spacelab/css/style.css"/>
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=a380df4051" language="javascript"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=086db78c1a" language="javascript"></script>
<!-- end minjs template tags -->
<?php endif; ?>