开发者

What's the new method for setting defaults for jQuery UI's dialog?

开发者 https://www.devze.com 2022-12-24 09:13 出处:网络
I\'ve been using the followin开发者_StackOverflow中文版g in UI 1.7, but it doesn\'t work in 1.8 any more:

I've been using the followin开发者_StackOverflow中文版g in UI 1.7, but it doesn't work in 1.8 any more:

$.extend($.ui.dialog.defaults, {
    modal: true,
    bgiframe: true,
    autoOpen: false,
    width: 500,
    height: 400,
    minWidth: 500,
    minHeight: 400
});

Is there a new method?


Found my answer. The following:

$.ui.dialog.defaults

...needs to be changed to:

$.ui.dialog.prototype.options
0

精彩评论

暂无评论...
验证码 换一张
取 消