AnsweredAssumed Answered

Content Pane Functionality is overrode when moveable (dnd) function is added

Question asked by brandon.price on Jan 16, 2018
Latest reply on Jan 24, 2018 by rscheitlin

I have to separate functions. The first function gets overrode by the second. What can I do to prevent this?

 

app.utilitySelector = new utilitySelectorModule();
app.utilitySelector.init();
var utilitySelectorToolBtn = dom.byId("PMSelect");
on(utilitySelectorToolBtn, "click", function (event) {
if (app.utilitySelector.isVisible === true) {
app.utilitySelector.hide();
} else { // not open
app.utilitySelector.show();
}
});


on(dom.byId("Pane"), "click", function(){
var dnd = new Moveable(dom.byId("Pane"));
});

 

The first functions opens a dojo content pane from a button onlick. The second function makes the content pane moveable. The functionality of the content pane is suspended as soon as the content pane is moved.

 

Any suggestions?

 

GIS Developers

Web AppBuilder Custom Widgets

Outcomes