开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜