码迷,mamicode.com
首页 > Web开发 > 详细

jquery ui 改写cloes事件

时间:2014-08-30 15:00:39      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   io   ar   for   div   

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();
    }
   }); 
}

 

jquery ui 改写cloes事件

标签:style   blog   http   color   os   io   ar   for   div   

原文地址:http://www.cnblogs.com/peng14/p/3946431.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!