dcLog/js/backend.js

17 lines
544 B
JavaScript
Raw Normal View History

/*global $, dotclear */
'use strict';
2023-04-29 20:07:20 +00:00
Object.assign(dotclear.msg, dotclear.getData('dcLog_msg'));
$(function(){
$('.checkboxes-helpers').each(function(){
dotclear.checkboxesHelpers(this)
});
2023-04-29 20:07:20 +00:00
$('input[name="selected_logs"]').click(function(){
return window.confirm(dotclear.msg.confirm_delete_selected_log)
});
2023-04-29 20:07:20 +00:00
$('input[name="all_logs"]').click(function(){
return window.confirm(dotclear.msg.confirm_delete_all_log)
})
2023-04-29 20:07:20 +00:00
dotclear.condSubmit('#dcLog_form td input[type=checkbox]', '#dcLog_form #selected_logs');
})