|
|
|
@ -66,7 +66,7 @@ if ($variables) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Session::write('variables_to_show', $variablesToShow); |
|
|
|
|
|
|
|
|
|
$allowSessionCopyToClipboard = api_get_configuration_value('admin_user_list_allow_copy_to_clipboard_sessions_list'); |
|
|
|
|
$htmlHeadXtra[] = '<script> |
|
|
|
|
function load_course_list (div_course,my_user_id) { |
|
|
|
|
$.ajax({ |
|
|
|
@ -80,8 +80,30 @@ function load_course_list (div_course,my_user_id) { |
|
|
|
|
$("div#"+div_course).html(datos); |
|
|
|
|
$("div#div_"+my_user_id).attr("class","blackboard_show"); |
|
|
|
|
$("div#div_"+my_user_id).attr("style",""); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.ajax({ |
|
|
|
|
contentType: "application/x-www-form-urlencoded", |
|
|
|
|
beforeSend: function (myObject) { |
|
|
|
|
$("div#" + div_session).html("<img src='.../inc/lib/javascript/indicator.gif'>"); |
|
|
|
|
}, |
|
|
|
|
type: "POST", |
|
|
|
|
url: "$url$session.", |
|
|
|
|
data: "user_id=" + my_user_id, |
|
|
|
|
success: function (datos) { |
|
|
|
|
$("div#" + div_session).html(datos); |
|
|
|
|
$("divdiv_s_" + my_user_id).attr("class", "blackboard_show"); |
|
|
|
|
$("divdiv_s_" + my_user_id).attr("style", "");'. |
|
|
|
|
($allowSessionCopyToClipboard ? |
|
|
|
|
'var textToCopy = datos.replace(/<br\s*\/?>/gi, '\n'); |
|
|
|
|
navigator.clipboard.writeText(textToCopy) |
|
|
|
|
.then(() => { |
|
|
|
|
console.info("Text copied to clipboard"); |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
console.error("Error copying to clipboard: ", err); |
|
|
|
|
});' |
|
|
|
|
: '') |
|
|
|
|
.'} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function load_session_list(div_session, my_user_id) { |
|
|
|
|