summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-17 13:19:46 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-17 13:19:46 +0100
commit91ee090b466ef33ca18b8a6c7267b7402aaded46 (patch)
treedc0b5e05142a16d0824033abf957bef8740c7dd3 /ishtar_common/templates
parente6981d344549cb858d3279a720f31e1ac9036b09 (diff)
downloadIshtar-91ee090b466ef33ca18b8a6c7267b7402aaded46.tar.bz2
Ishtar-91ee090b466ef33ca18b8a6c7267b7402aaded46.zip
JS: fix modal scroll on child modal close
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/blocks/DataTables.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html
index 37dd090d2..81b61a86a 100644
--- a/ishtar_common/templates/blocks/DataTables.html
+++ b/ishtar_common/templates/blocks/DataTables.html
@@ -83,14 +83,16 @@ $('#modal_grid_{{name}}').on('show.bs.modal', function (e) {
'#modal_grid_{{name}} .modal-body .current-grid');
$('#window').appendTo(
'#modal_grid_{{name}} .modal-body .current-sheets');
- $('#grid_{{name}}').DataTable().clear().draw()
+ $('#grid_{{name}}').DataTable().clear().draw();
+ current_modal = $("#modal_grid_{{name}}");
});
$('#modal_grid_{{name}}').on('hide.bs.modal', function (e) {
$('#grid_{{name}}_wrapper').appendTo(
'#grid_{{name}}_meta_wrapper');
$('#window').appendTo('#window_wrapper');
- $('#grid_{{name}}').DataTable().clear().draw()
+ $('#grid_{{name}}').DataTable().clear().draw();
+ current_modal = null;
});