mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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;
|
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 = '<div id="hidden_event_instructions_'.$event['id_evento'].'"';
|
||||||
$output .= ' class="event_instruction">';
|
$output .= ' class="event_instruction">';
|
||||||
$output .= $value;
|
$output .= $value;
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
$output .= '<span id="value_event_'.$event['id_evento'].'" class="nowrap">';
|
$output .= '<span id="value_event_'.$event['id_evento'].'" class="nowrap">';
|
||||||
$output .= '<span id="value_event_text_'.$event['id_evento'].'"></span>';
|
$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(
|
$output .= html_print_image(
|
||||||
'images/default_list.png',
|
'images/default_list.png',
|
||||||
true,
|
true,
|
||||||
['title' => $over_text]
|
[
|
||||||
|
'title' => $over_text,
|
||||||
|
'class' => 'invert_filter',
|
||||||
|
]
|
||||||
).'</a></span>';
|
).'</a></span>';
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
@ -3694,11 +3694,19 @@ function datetime_picker_callback() {
|
|||||||
|
|
||||||
datetime_picker_callback();
|
datetime_picker_callback();
|
||||||
|
|
||||||
function show_instructions(id){
|
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: `${title+' '+atob(title_event)}`,
|
||||||
width: 600
|
width: 650,
|
||||||
|
draggable: true,
|
||||||
|
modal: true,
|
||||||
|
closeOnEscape: true,
|
||||||
|
open: function(){
|
||||||
|
$('.ui-widget-overlay').bind('click',function(){
|
||||||
|
$('#hidden_event_instructions_' + id).dialog('close');
|
||||||
|
})
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user