Merge branch 'ent-2388-TMB-operacion-masiva-de-eventos-en-proceso' into 'develop'

Added in progres selected button to events view

See merge request artica/pandorafms!1565
This commit is contained in:
slerena 2018-06-25 18:54:00 +02:00
commit 5d6a10a7a0
1 changed files with 5 additions and 3 deletions

View File

@ -763,14 +763,16 @@ else {
echo '<div style="width:' . $table->width . ';" class="action-buttons">';
//~ if (!$readonly && tags_check_acl ($config["id_user"], 0, "EW", $event['clean_tags']) == 1) {
if (!$readonly && $show_validate_button) {
html_print_button(__('Validate selected'), 'validate_button', false, 'validate_selected();', 'class="sub ok"');
html_print_button(__('In progress selected'), 'validate_button', false, 'validate_selected(2);', 'class="sub ok"');
echo " ";
html_print_button(__('Validate selected'), 'validate_button', false, 'validate_selected(1);', 'class="sub ok"');
// Fix: validated_selected JS function has to be included with the proper user ACLs
?>
<script type="text/javascript">
function validate_selected() {
function validate_selected(new_status) {
$(".chk_val").each(function() {
if($(this).is(":checked")) {
validate_event_advanced($(this).val(),1);
validate_event_advanced($(this).val(), new_status);
}
});
}