|
|
|
@ -125,25 +125,6 @@ $(document).ready(function() { |
|
|
|
|
document.getElementById(\'extra_data_text\').style.display="none"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$(".agenda_opener").click(function() { |
|
|
|
|
var url = this.href; |
|
|
|
|
var dialog = $("#dialog"); |
|
|
|
|
|
|
|
|
|
if ($("#dialog").length == 0) { |
|
|
|
|
dialog = $(\'<div id="dialog" style="display:hidden"></div> \').appendTo(\'body\'); |
|
|
|
|
} |
|
|
|
|
// load remote content |
|
|
|
|
dialog.load( |
|
|
|
|
url, |
|
|
|
|
{}, |
|
|
|
|
function(responseText, textStatus, XMLHttpRequest) { |
|
|
|
|
dialog.dialog({width:720, height:550, modal:true}); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
//prevent the browser to follow the link |
|
|
|
|
return false; |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//Load user calendar |
|
|
|
@ -591,7 +572,7 @@ function modify_filter($user_id, $url_params, $row) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (api_is_platform_admin()) { |
|
|
|
|
$result .= ' <a href="'.api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?a=get_user_agenda&user_id='.$user_id.'" class="agenda_opener">'. |
|
|
|
|
$result .= ' <a href="'.api_get_path(WEB_AJAX_PATH).'agenda.ajax.php?a=get_user_agenda&user_id='.$user_id.'&modal_size=lg" class="agenda_opener ajax">'. |
|
|
|
|
Display::return_icon('month.png', get_lang('FreeBusyCalendar'), array(), ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
$deleteAllowed = !api_get_configuration_value('deny_delete_users'); |
|
|
|
|
if ($deleteAllowed) { |
|
|
|
|