sysfavourite_wev8.js
1023 Bytes
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
35
36
37
jQuery(document).ready(function(){
//屏蔽右键菜单
document.oncontextmenu = function(){
return false;
};
var dialog = parent.getDialog(window); //dialog对象
var parentWin = parent.getParentWindow(window); //父窗口对象
//确定按钮的事件
jQuery("#btnsubmit").bind("click",function(){
if(!check_form(favform,"pagename,dirid,favouritetype")){
return;
}
jQuery(this).unbind("click"); //清除点击事件,避免重复提交
var postData = {};
var pagename = jQuery("#pagename").val();
var dirid = jQuery("#dirid").val();
var favouritetype = jQuery("#favouritetype").val();
var favid = jQuery("#favid").val();
postData.pagename = pagename;
postData.dirid = dirid;
postData.favouritetype = favouritetype;
postData.favid = favid;
postData.action = "edit";
jQuery.post("/favourite/FavouriteOp.jsp",postData,function(data){
dialog.close(data);
});
});
//取消按钮的事件
jQuery("#btncancel").bind("click",function(){
dialog.close();
});
});