From c98639b9ab1568e60077e0f69aee9c7695435be2 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Thu, 29 Aug 2019 12:56:48 +0300 Subject: [PATCH] drop: get rid of =defunct dialog modal... as promised in https://github.com/quantopian/qgrid/issues/183#issuecomment-382810355 --- js/src/qgrid.css | 66 ------------------------------------------ js/src/qgrid.widget.js | 47 ------------------------------ js/webpack.config.js | 2 +- 3 files changed, 1 insertion(+), 114 deletions(-) diff --git a/js/src/qgrid.css b/js/src/qgrid.css index a0553074..7f6dd4bc 100644 --- a/js/src/qgrid.css +++ b/js/src/qgrid.css @@ -76,72 +76,6 @@ display: none; } -.qgrid-modal .q-grid-toolbar .close-modal-btn { - display: block; -} - -.qgrid-modal .full-screen-btn, -.qgrid-modal .modal-header, -.qgrid-modal .modal-footer { - display: none; -} - -.qgrid-modal { - width: 100%; - height: 100%; - margin: 0px; -} - -.qgrid-modal .modal-dialog { - position: absolute; - top: 20px; - left: 20px; - bottom: 20px; - right: 20px; - margin: 0px; - width: auto; - height: auto; -} - -.qgrid-modal .modal-content { - position: absolute; - left: 0px; - right: 0px; - top: 0px; - bottom: 0px; -} - -.qgrid-modal .modal-body { - position: absolute; - padding: 15px; - top: 0px; - left: 0px; - bottom: 0px; - right: 0px; -} - -.qgrid-modal .modal-body button.close { - margin-top: 7px; - margin-right: 14px; -} - -.qgrid-modal .q-grid-container { - bottom: 25px; - left: 20px; - right: 20px; - position: absolute; - top: 15px; -} - -.qgrid-modal .q-grid { - position: absolute; - top: 33px; - bottom: 0px; - left: 0px; - right: 0px; - height: auto !important; -} - .q-grid-toolbar .full-screen-btn, .q-grid-toolbar .close-modal-btn { height: 18px; diff --git a/js/src/qgrid.widget.js b/js/src/qgrid.widget.js index 9cfe94df..a4ac1126 100644 --- a/js/src/qgrid.widget.js +++ b/js/src/qgrid.widget.js @@ -7,13 +7,6 @@ var slider_filter = require('./qgrid.sliderfilter.js'); var text_filter = require('./qgrid.textfilter.js'); var boolean_filter = require('./qgrid.booleanfilter.js'); var editors = require('./qgrid.editors.js'); -var dialog = null; -try { - dialog = require('base/js/dialog'); -} catch (e) { - console.warn("Qgrid was unable to load base/js/dialog. " + - "Full screen button won't be available"); -} var jquery_ui = require('jquery-ui-dist/jquery-ui.min.js'); require('slickgrid-qgrid/slick.core.js'); @@ -116,30 +109,6 @@ class QgridView extends widgets.DOMWidgetView { this.buttons.tooltip('disable'); this.full_screen_btn = null; - if (dialog) { - this.full_screen_modal = $('body').find('.qgrid-modal'); - if (this.full_screen_modal.length == 0) { - this.full_screen_modal = $(` - - `).appendTo($('body')); - } - this.full_screen_btn = $(` -