Nicklas
Posts: 0
Joined: Thu Jul 03, 2014 8:51 am

if not open

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

if not open

Hello Nicklas,

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

Return to “Issues”