Page 1 of 1

if not open

Posted: Fri Jan 15, 2016 1:18 pm
by Nicklas

I want a popup to open if a panel is closed. How to do that in Javascript?

I tried this but then the panel just closing.:

code
if (Appery("panelName").panel() = "close")
{
Appery("popupName").popup("open");
}
/code


if not open

Posted: Fri Jan 15, 2016 3:33 pm
by Serhii Kulibaba

Hello Nicklas,

Please use JS code below:
preif (Apperyio("panelName").hasClass("ui-panel-closed")){
Apperyio("popupName").popup("open");
}/pre