jQuery UI dialog 隐藏默认关闭按钮

 1 var O_dialog = $("#dialog-modal");
 2         O_dialog.dialog({
 3             closeOnEscape: false,
 4             width: 250,
 5             height: 80,
 6             resizable: false,
 7             draggable: false,
 8             modal: true,
 9             title: "正在加载,请稍候...",
10             //隐藏默认的关闭按钮
11             open: function (event, ui) {
12                 $(".ui-dialog-titlebar-close", $(this).parent()).hide();
13             }
14         });

 

posted @ 2013-12-20 09:09  小猩猩君  阅读(22205)  评论(0编辑  收藏  举报