Skip to content

Commit

Permalink
Remove modal panel as it is repalced by flatmaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jun 4, 2019
1 parent 278c28b commit b6e1834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/ui/BaseDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var BaseDialog = function() {
this.container = undefined;
this.module = undefined;
this.parent = undefined;
this.containment = undefined;
this.content = undefined;
this.datGui = undefined;
this.UIIsReady = false;
Expand Down Expand Up @@ -66,6 +67,7 @@ BaseDialog.prototype.resizeStopCallback = function(myInstance) {
BaseDialog.prototype.create = function(htmlData) {
this.container = $('<div></div>');
this.container.attr('title', this.title);
console.log(this.parent);
if (this.parent === undefined)
this.parent = $('body');
this.container.dialog({
Expand All @@ -77,6 +79,7 @@ BaseDialog.prototype.create = function(htmlData) {
closeOnEscape: false,
position: { my: "left top", at: "left top", of: this.parent},
resize: function() {
console.log($(this).parent());
var heightPadding = parseInt($(this).css('padding-top'), 10) + parseInt($(this).css('padding-bottom'), 10),
widthPadding = parseInt($(this).css('padding-left'), 10) + parseInt($(this).css('padding-right'), 10),
titlebarMargin = parseInt($(this).prev('.ui-dialog-titlebar').css('margin-bottom'), 10);
Expand Down
9 changes: 0 additions & 9 deletions src/utilities/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ exports.ModuleManager = function() {
var dialog = new (require("../ui/OrgansViewerDialog").OrgansViewerDialog)(module, parent);
return dialog;
}
this["Model Panel"] = [];
this["Model Panel"].module = function() {
var module = new (require("../modules/model_panel").ModelPanel)();
return module;
}
this["Model Panel"].dialog= function(module, parent) {
var dialog = new (require("../ui/ModelViewerDialog").ModelViewerDialog)(module, parent);
return dialog;
}
this["Scaffold Viewer"] = [];
this["Scaffold Viewer"].module = function() {
var module = new (require("../modules/ScaffoldViewer").ScaffoldViewer)();
Expand Down

0 comments on commit b6e1834

Please sign in to comment.