Skip to content

Commit

Permalink
Merge pull request #27 from faridmovsumov/patch-4
Browse files Browse the repository at this point in the history
Bug Fix: After closing window, it wasn't open again.
  • Loading branch information
jorisros authored May 26, 2018
2 parents 88b4ff4 + 07479a1 commit ad4c101
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions Resources/public/js/pimcore/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ pimcore.plugin.FeedBuilderBundle = Class.create(pimcore.plugin.admin, {
},

getPanel: function () {

//var editor = new pimcore.report.custom.panel();


var editor = new feedbuilder.panel();
if (!this.panel) {
if (!this.panel || (this.panel && this.panel.destroyed)) {
this.panel = new Ext.Panel({
id: "feedbuilder_editor",
title: t("feedbuilder_title"),
Expand All @@ -47,25 +45,19 @@ pimcore.plugin.FeedBuilderBundle = Class.create(pimcore.plugin.admin, {
tabPanel.add(this.panel);
tabPanel.setActiveItem("feedbuilder_editor");

this.panel.on("destroy", function () {
pimcore.globalmanager.remove("feedbuilder_editor");
}.bind(this));

pimcore.layout.refresh();
}else {
var tabPanel = Ext.getCmp("pimcore_panel_tabs");
tabPanel.setActiveItem("feedbuilder_editor");
}

return this.panel;
},






open: function() {
this.getTab();

},

getGrid: function() {

var store = Ext.create('Ext.data.Store', {
Expand Down

0 comments on commit ad4c101

Please sign in to comment.