Merge branch 'ent-13223-Se-pueden-abrir-muchas-instrucciones-de-evento-de-manera-simultánea' into 'develop'
Ent 13223 se pueden abrir muchas instrucciones de evento de manera simultánea See merge request artica/pandorafms!7270
This commit is contained in:
commit
fc8538108a
|
@ -5944,17 +5944,30 @@ function events_get_instructions($event, $max_text_length=300)
|
|||
return $value;
|
||||
}
|
||||
|
||||
$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 .= ' class="event_instruction">';
|
||||
$output .= $value;
|
||||
$output .= '</div>';
|
||||
$output .= '<span id="value_event_'.$event['id_evento'].'" class="nowrap">';
|
||||
$output .= '<span id="value_event_text_'.$event['id_evento'].'"></span>';
|
||||
$output .= '<a href="javascript:show_instructions('.$event['id_evento'].')">';
|
||||
$output .= '<a href="javascript:show_instructions('.$event['id_evento'].',\''.$over_event_name.'\')">';
|
||||
$output .= html_print_image(
|
||||
'images/default_list.png',
|
||||
true,
|
||||
['title' => $over_text]
|
||||
[
|
||||
'title' => $over_text,
|
||||
'class' => 'invert_filter',
|
||||
]
|
||||
).'</a></span>';
|
||||
|
||||
return $output;
|
||||
|
|
|
@ -3694,11 +3694,19 @@ function datetime_picker_callback() {
|
|||
|
||||
datetime_picker_callback();
|
||||
|
||||
function show_instructions(id){
|
||||
function show_instructions(id, title_event){
|
||||
title = "<?php echo __('Instructions'); ?>";
|
||||
$('#hidden_event_instructions_' + id).dialog({
|
||||
title: title,
|
||||
width: 600
|
||||
title: `${title+' '+atob(title_event)}`,
|
||||
width: 650,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
closeOnEscape: true,
|
||||
open: function(){
|
||||
$('.ui-widget-overlay').bind('click',function(){
|
||||
$('#hidden_event_instructions_' + id).dialog('close');
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue