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

  • 相关阅读:
    压缩流GZipStream
    委托和事件
    .NET垃圾回收机制
    程序集相关知识
    生活
    poj 3767 I Wanna Go Home
    fw:Python GUI的设计工具
    How to configure an NTP client and server on CentOS/RedHat
    FW:Tripwire
    Bash if 判断 集合
  • 原文地址:https://www.cnblogs.com/peng14/p/3946431.html
Copyright © 2011-2022 走看看