Merge pull request #3060 from opensourcepos/fix-table-mobile-glitch

Disable resize trigger (#3057)
This commit is contained in:
FrancescoUK
2020-12-31 09:34:40 +00:00
committed by GitHub
3 changed files with 0 additions and 13 deletions

View File

@@ -58,7 +58,6 @@
escape: false
});
table_support.init_resize();
});
</script>

View File

@@ -91,7 +91,6 @@
});
init_dialog();
table_support.init_resize();
});
</script>

View File

@@ -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")();
@@ -329,7 +319,6 @@
},
handle_submit: handle_submit,
init: init,
init_resize: init_resize,
do_delete: do_action("delete"),
do_restore: do_action("restore"),
refresh : refresh,