zoukankan      html  css  js  c++  java
  • 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,
         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();
        }
       }); 
    }

  • 相关阅读:
    win32程序添加控制台程序
    STL链表类模板的学习
    简单封装的串口通信类
    nyoj49 开心的小明
    hdu2094 产生冠军
    hdu1272 小希的迷宫
    hdu1106 排序
    hdu1999 不可摸数
    hdu2085 核反应堆
    nyoj119 士兵杀敌(三)
  • 原文地址:https://www.cnblogs.com/peng14/p/3946431.html
Copyright © 2011-2022 走看看