EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MSAG on March 23, 2019, 01:57:25 AM



Title: [Solved]Check if there is a message from $.messager
Post by: MSAG 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


Title: Re: Check if there is a message from $.messager
Post by: stworthy 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){
  //...
}


Title: Re: [Solved]Check if there is a message from $.messager
Post by: MSAG on March 25, 2019, 02:54:00 AM
Thanks it is work