jquery ui 改写cloes事件
htmlAjax:{//模板ajax請求參數設置項
??????????? url:"template/task/task_create.html",
??????????? dataType:"html"
??????? },
??isNotHTML:true,
??showBeforeFormatHTML: function(tempalte){
???return tempalte;
??},
??
showAfter:function(data,tempalte){
????var $createTaskArea=$('<div id="createTaskArea"></div>');
????$createTaskArea.append(tempalte)
??
???this.creatNewTaskDialog($createTaskArea);
???this.initUserId();
???this.initPullDownList();?
???this.bindEventsForTask();
},
/*彈出新建任務窗口*/
creatNewTaskDialog: function(tpl){
???var self = this;
????? $(tpl).dialog({
???? dialogClass: "task-dialog task-new-dialog",?
???? modal: true,
???? height: 600,
???? width:630,
???? title:"新建任務",
???? buttons: [
?????{
?????? text: "保存",
?????? click: function(e) {
???????e.stopPropagation();
???????var that = $(this);
???????self.successCreateTask(that);
???????return false;
???????? }
?????},
?????{
?????? text: "取消",
?????? click: function(e) {
???????e.stopPropagation();
???????$( this ).dialog("close");
???????? }
?????}
?????? ],
????"close" : function() {
?????$(this).off().remove();
????}
???});?
}
?
轉載于:https://www.cnblogs.com/peng14/p/3946431.html
總結
以上是生活随笔為你收集整理的jquery ui 改写cloes事件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 视频剪辑工具,教你几种方法批量剪辑、遮挡
- 下一篇: 域名没有注销要承担什么责任