EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: camellodetroya on January 22, 2015, 09:00:02 AM



Title: window-mask for $.messager.show
Post by: camellodetroya on January 22, 2015, 09:00:02 AM
hello,

i need apply window-mask in $.messager.show for user not interact width page back, as does alert, confirm, progressbar, etc.

there is some way to archieve such a thing?

ty.


Title: Re: window-mask for $.messager.show
Post by: stworthy on January 22, 2015, 08:14:01 PM
Please download the updated messager plugin from http://www.jeasyui.com/easyui/plugins/jquery.messager.js and include it to your page.
Code:
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/plugins/jquery.messager.js"></script>
<script type="text/javascript">
$(function(){
$.messager.show({
title:'My Title',
msg:'Message will be closed after 4 seconds.',
showType:'show',
modal:true
});
})
</script>


Title: Re: window-mask for $.messager.show
Post by: camellodetroya on January 23, 2015, 08:16:19 AM
Thanks stworthy, but i apply jquery.messager.js in page and throws the folowing Error in jquery.easyui.min.js:

TypeError: _237 is undefined
var opts=_237.options;

Line 3028 col 4

I am using version 1.4.1 ( and tryied 1.4.1.x with same result )


Title: Re: window-mask for $.messager.show
Post by: stworthy on January 23, 2015, 08:58:10 AM
Please try this example http://jsfiddle.net/chwzb1mv/. It works fine.


Title: Re: window-mask for $.messager.show
Post by: camellodetroya on January 26, 2015, 08:01:32 AM
stworthy,

It inspected and found to have problems with the version of jquery, now works perfectly.

Thanks.