EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dailyblog on October 28, 2019, 10:41:12 PM



Title: error on messager
Post by: dailyblog on October 28, 2019, 10:41:12 PM
Code:
$.messager.defaults=$.extend({},$.messager.defaults,{
    border:'thin',
    onOpen:function(){
        $(this).find("input.messager-input").textbox({width:"100%"});
    }
    }
);
Code:
$.messager.prompt("title","please input:")
when i click the button below,error occurs:
Uncaught TypeError: opts.fn is not a function
 at _2c9 (jquery.easyui.min.js:4125)
    at HTMLAnchorElement.onClick (jquery.easyui.min.js:4159)
    at HTMLAnchorElement.<anonymous> (jquery.easyui.min.js:968)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)


Title: Re: error on messager
Post by: stworthy on October 29, 2019, 07:52:45 PM
Please call this code instead.
Code:
$.messager.prompt({
title: 'Title',
msg: 'Here is a message!',
border: 'thin',
onOpen: function(){
//...
}
})