//remove preactivationLink ajax and move in gamification module

This commit is contained in:
Vincent Augagneur
2013-11-14 10:54:29 +01:00
parent 63ef0b82e6
commit 9a0b308846
2 changed files with 1 additions and 33 deletions
-20
View File
@@ -279,32 +279,12 @@ function saveDashConfig(widget_name) {
});
}
function preactivationLinkClick(module) {
$.ajax({
url : adminstats_ajax_url,
data : {
ajax : "1",
controller : "AdminDashboard",
action : "savePreactivationRequest",
module : module,
},
type: 'POST',
success : function(jsonData){
}
});
}
$(document).ready( function () {
$('#calendar_form input[type="submit"]').on('click', function(elt) {
elt.preventDefault();
setDashboardDateRange(elt.currentTarget.name);
});
$(".preactivationLink").on('click', function() {
preactivationLinkClick($(this).attr("rel"));
});
refreshDashboard(false, false);
getBlogRss();
bindSubmitDashConfig();