Skip to content

Commit

Permalink
feat(clean-up): remove old Bill code
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksueiR committed Apr 30, 2015
1 parent 978f909 commit a080f41
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions src/js/RAMP/Modules/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,6 @@ define([
helpSectionContainer = $("#help-section-container"),
helpSection = $("#help-section"),

addLayerToggle = $("#addLayer-toggle"),
addLayerSectionContainer = $("#addLayer-section-container"),
//AddLayerSection = $("#addLayer-section"),

cssButtonPressedClass = "button-pressed",
cssExpandedClass = "state-expanded",

Expand Down Expand Up @@ -1428,48 +1424,6 @@ define([

autoHideDataTab();

//Start AddLayer popup controller
addLayerPanelPopup = popupManager.registerPopup(addLayerToggle, "click",
function (d) {
topic.publish(EventManager.GUI.ADD_LAYER_PANEL_CHANGE, { visible: true });
topic.publish(EventManager.GUI.TOOLBAR_SECTION_OPEN, { id: "add-layer-section" });
console.log(EventManager.GUI.ADD_LAYER_PANEL_CHANGE + " visible:", true);

// close this panel if any other panel is opened
UtilMisc.subscribeOnce(EventManager.GUI.TOOLBAR_SECTION_OPEN, dojoLang.hitch(this,
function () {
if (this.isOpen()) {
this.close();
}
})
);

addLayerSectionContainer.slideToggle("fast", function () {
d.resolve();
});
}, {
activeClass: cssButtonPressedClass,
target: addLayerSectionContainer,
closeHandler: function (d) {
topic.publish(EventManager.GUI.ADD_LAYER_PANEL_CHANGE, { visible: false });
topic.publish(EventManager.GUI.TOOLBAR_SECTION_CLOSE, { id: "add-layer-section" });
console.log(EventManager.GUI.ADD_LAYER_PANEL_CHANGE + " visible:", false);

addLayerSectionContainer.slideToggle("fast", function () {
d.resolve();
});
},
resetFocusOnClose: true
}
);

$("#addLayer-add").on("click", function () {
topic.publish(EventManager.Map.ADD_LAYER, null);

addLayerPanelPopup.close();
});
//End Add Layer

//start extended grid
topic.subscribe(EventManager.GUI.DATAGRID_EXPAND, function () {
layoutController.toggleFullDataMode();
Expand Down

0 comments on commit a080f41

Please sign in to comment.