htmlajax:{//template Ajax Request parameter setting item
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 ();
},
/* Popup New Task window */
Creatnewtaskdialog:function (TPL) {
var = this;
$ (TPL). Dialog ({
Dialogclass: "Task-dialog task-new-dialog",
Modal:true,
height:600,
width:630,
Title: "New Task",
Buttons: [
{
Text: "Save",
Click:function (e) {
E.stoppropagation ();
var = $ (this);
Self.successcreatetask (that);
return false;
}
},
{
Text: "Cancel",
Click:function (e) {
E.stoppropagation ();
$ (This). dialog ("Close");
}
}
],
"Close": function () {
$ (this). Off (). remove ();
}
});
}
jquery UI Overwrite Cloes event