#13223 Fixed instructions dialog in events as a modal
This commit is contained in:
parent
cacd05d667
commit
a41a1becfa
|
@ -5888,12 +5888,6 @@ function events_get_instructions($event, $max_text_length=300)
|
||||||
io_safe_output($event['unknown_instructions'])
|
io_safe_output($event['unknown_instructions'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$event_name = str_replace(
|
|
||||||
"'",
|
|
||||||
'',
|
|
||||||
io_safe_output($event['evento'])
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'going_up_warning':
|
case 'going_up_warning':
|
||||||
|
@ -5905,12 +5899,6 @@ function events_get_instructions($event, $max_text_length=300)
|
||||||
io_safe_output($event['warning_instructions'])
|
io_safe_output($event['warning_instructions'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$event_name = str_replace(
|
|
||||||
"'",
|
|
||||||
'',
|
|
||||||
io_safe_output($event['evento'])
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'going_up_critical':
|
case 'going_up_critical':
|
||||||
|
@ -5922,12 +5910,6 @@ function events_get_instructions($event, $max_text_length=300)
|
||||||
io_safe_output($event['critical_instructions'])
|
io_safe_output($event['critical_instructions'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$event_name = str_replace(
|
|
||||||
"'",
|
|
||||||
'',
|
|
||||||
io_safe_output($event['evento'])
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -5946,7 +5928,16 @@ function events_get_instructions($event, $max_text_length=300)
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
$over_event_name = ui_print_truncate_text($event_name, 51, false, true, false);
|
$event_name = ui_print_truncate_text(
|
||||||
|
io_safe_output($event['evento']),
|
||||||
|
GENERIC_SIZE_TEXT,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'...'
|
||||||
|
);
|
||||||
|
|
||||||
|
$over_event_name = base64_encode($event_name);
|
||||||
$output = '<div id="hidden_event_instructions_'.$event['id_evento'].'"';
|
$output = '<div id="hidden_event_instructions_'.$event['id_evento'].'"';
|
||||||
$output .= ' class="event_instruction">';
|
$output .= ' class="event_instruction">';
|
||||||
$output .= $value;
|
$output .= $value;
|
||||||
|
|
|
@ -3718,13 +3718,16 @@ datetime_picker_callback();
|
||||||
function show_instructions(id, title_event){
|
function show_instructions(id, title_event){
|
||||||
title = "<?php echo __('Instructions'); ?>";
|
title = "<?php echo __('Instructions'); ?>";
|
||||||
$('#hidden_event_instructions_' + id).dialog({
|
$('#hidden_event_instructions_' + id).dialog({
|
||||||
title: `${title+' '+title_event}`,
|
title: `${title+' '+atob(title_event)}`,
|
||||||
width: 650,
|
width: 650,
|
||||||
draggable: false,
|
draggable: true,
|
||||||
});
|
modal: true,
|
||||||
|
closeOnEscape: true,
|
||||||
$(document).on('click','div', function(){
|
open: function(){
|
||||||
|
$('.ui-widget-overlay').bind('click',function(){
|
||||||
$('#hidden_event_instructions_' + id).dialog('close');
|
$('#hidden_event_instructions_' + id).dialog('close');
|
||||||
|
})
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue