fix submit conditions
This commit is contained in:
parent
8315eede38
commit
966366a92f
2 changed files with 6 additions and 5 deletions
|
@ -1,16 +1,17 @@
|
||||||
/*global $, dotclear */
|
/*global $, dotclear */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
Object.assign(dotclear.msg, dotclear.getData('dclog_list'));
|
Object.assign(dotclear.msg, dotclear.getData('dcLog_msg'));
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$('.checkboxes-helpers').each(function(){
|
$('.checkboxes-helpers').each(function(){
|
||||||
dotclear.checkboxesHelpers(this)
|
dotclear.checkboxesHelpers(this)
|
||||||
});
|
});
|
||||||
$('input[name="del_logs"]').click(function(){
|
$('input[name="selected_logs"]').click(function(){
|
||||||
return window.confirm(dotclear.msg.confirm_delete_selected_log)
|
return window.confirm(dotclear.msg.confirm_delete_selected_log)
|
||||||
});
|
});
|
||||||
$('input[name="del_all_logs"]').click(function(){
|
$('input[name="all_logs"]').click(function(){
|
||||||
return window.confirm(dotclear.msg.confirm_delete_all_log)
|
return window.confirm(dotclear.msg.confirm_delete_all_log)
|
||||||
})
|
})
|
||||||
|
dotclear.condSubmit('#dcLog_form td input[type=checkbox]', '#dcLog_form #selected_logs');
|
||||||
})
|
})
|
|
@ -77,8 +77,8 @@ class Manage extends dcNsProcess
|
||||||
$current = ManageVars::init();
|
$current = ManageVars::init();
|
||||||
|
|
||||||
dcPage::openModule(
|
dcPage::openModule(
|
||||||
__('Pings'),
|
My::name(),
|
||||||
dcPage::jsJson('dclog_list', [
|
dcPage::jsJson('dcLog_msg', [
|
||||||
'confirm_delete_selected_log' => __('Are you sure you want to delete selected logs?'),
|
'confirm_delete_selected_log' => __('Are you sure you want to delete selected logs?'),
|
||||||
'confirm_delete_all_log' => __('Are you sure you want to delete all logs?'),
|
'confirm_delete_all_log' => __('Are you sure you want to delete all logs?'),
|
||||||
]) .
|
]) .
|
||||||
|
|
Loading…
Reference in a new issue