mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-14 02:33:56 -04:00
Disable resize trigger (#3057)
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
escape: false
|
||||
});
|
||||
|
||||
table_support.init_resize();
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -91,7 +91,6 @@
|
||||
});
|
||||
|
||||
init_dialog();
|
||||
table_support.init_resize();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -258,20 +258,10 @@
|
||||
enable_actions();
|
||||
init_delete();
|
||||
init_restore();
|
||||
init_resize();
|
||||
toggle_column_visibility();
|
||||
dialog_support.init("button.modal-dlg");
|
||||
};
|
||||
|
||||
var init_resize = function() {
|
||||
$(window).resize(function () {
|
||||
$('#table').bootstrapTable('refreshOptions', {
|
||||
stickyHeaderOffsetLeft: $('#table').offset().left + 'px',
|
||||
stickyHeaderOffsetRight: $('#table').offset().right + 'px',
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
var init_delete = function (confirmMessage) {
|
||||
$("#delete").click(function(event) {
|
||||
do_action("delete")();
|
||||
|
||||
Reference in New Issue
Block a user