EasyUI Forum
May 08, 2024, 05:19:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Solved]Check if there is a message from $.messager  (Read 3268 times)
MSAG
Newbie
*
Posts: 41



View Profile Email
« on: March 23, 2019, 01:57:25 AM »

How can check if there is a message showed from $.messager
or there is modal window or dialog

just check if there is modal

thanks
« Last Edit: March 25, 2019, 02:53:45 AM by MSAG » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 24, 2019, 11:48:57 PM »

Try this code to detect if the messager window is opened.

Code:
var mw = $('body').find('.messager-window');
if (mw.length){
  //...
}
Logged
MSAG
Newbie
*
Posts: 41



View Profile Email
« Reply #2 on: March 25, 2019, 02:54:00 AM »

Thanks it is work
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!