-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox.js
More file actions
executable file
·40 lines (38 loc) · 1001 Bytes
/
box.js
File metadata and controls
executable file
·40 lines (38 loc) · 1001 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
38
39
40
function reputation(obj,user,act,uid,pid){
var pos = $(obj).offset();
$('#reputation_box').css("position","fixed");
$('#reputation_box').css("position","fixed");
$('#reputation_box').css("top",200+'px');
$('#reputation_box').css("left",pos.left+'px');
$('#action').attr("value",act);
$('#uid').attr("value",uid);
$('#pid').attr("value",pid);
$('#reputation_box').show('slow');
var img = '<img src="'+$(obj).attr('src')+'" />';
$('#type').html(' '+img+' '+user);
return false;
}
function confirmrepudel(){
conf = confirm('Are you sure to delete this reputation?');
if(!conf){
return false;
}
return true;
}
$(document).ready(function(){
$('#repusubmit').click(function(){
var params= $('#frmrepu').serialize();
params = params + '&ajax=true';
$.ajax({
type: 'GET',
url: $('#frmrepu').attr('action'),
data: params,
success: function(result){
alert(result);
$('#reputation_box').hide('slow');
return false;
},
});
return false;
});
});