blob: 59523d44aadc7f23ad7f08f30defdc66aa6ae25d (
plain)
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
|
$(document).ready(function(){
/* to avoid CKE partial loading... */
$('.form-wrapper').slideToggle();
/* reply button action */
$(".btn-reply a").click(function(){
var clicked = $(this).attr("class");
$('#'+clicked).slideToggle();
console.log($(this).html());
if ($(this).html() == "Reply") {
$(this).html("Close");
} else {
$(this).html("Reply");
}
});
/* delete link */
$(".delete").click(function(e){
sure = confirm("Are you sure ?");
console.log(sure);
if (sure) {
window.location.href = $(this).attr("href");
}
else {
console.log("nopees");
}
e.preventDefault();
});
});
|