system/sai/modules/saimod_sys_log/sai_sys_log.js
rylon 4d595c6573 saimod_sys_calls, saimod_sys_config, saimod_sys_locale, saimod_sys_mod
fixed saimod_sys_security,
renamed saimod_sys_error -> saimod_sys_log
fixed all Menu entries
saimod right_right should return true when public!
2013-05-24 22:12:46 +02:00

43 lines
1.3 KiB
JavaScript

function init__SYSTEM_SAI_saimod_sys_log() {
$('#truncate_table').click(function(){
$.ajax({
type :'GET',
url : './?action=developer&sai_mod=.SYSTEM.SAI.saimod_sys_log&truncate=sys_log',
success : function(data) {
if(data == 1){
$('#info_box').html("deleting data...");
$('#truncate_modal').modal('hide');
$('#content-wrapper').load('./?action=developer&sai_mod=.SYSTEM.SAI.saimod_sys_log');
}else{
$('#info_box').html("You do not have the permission to truncate table!");
}
}
});
});
$('#refresh_error_table').live("click", (function(){
$('img#loader').show();
$('#content-wrapper').load('./?action=developer&sai_mod=.SYSTEM.SAI.saimod_sys_log');
setTimeout("$('img#loader').hide()", 1300);
}));
$("#filter-error button").live("click", (function(){
$(this).parents().children().removeClass('active');
$(this).addClass('active');
$('#table-wrapper').load('./?action=developer&sai_mod=.SYSTEM.SAI.saimod_sys_log&filter_error='+$(this).attr('id'));
}));
}