1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//显示新建项目群组对话框
function showCreateProjectGroupDialog(i) {
$("#layout-createProjectGroup-pane").show().dialog({
modal: true
, title: lmslang.listProjectGroup_Create
, width: 450
, overlay: {
opacity: 0.5
}
, focus: function(ev, data) {
$("#txtGroupName").focus();
}
, buttons: {
"保存": function() {
var name = el("txtGroupName").value;
var description = el("txtDescription").value;
var b = $("#fgroup").valid();
if (b) {
createGroupJson();
closeCreateGroupDialog();
} else {
showError(lmslang.formValidate_Error);
}
}
, "取消": function() {
closeCreateGroupDialog();
}
}
});
}
//隐藏新建项目群组对话框
function closeCreateGroupDialog(){
$("#layout-createProjectGroup-pane").dialog("close");
}
|