This commit is contained in:
Emmanuel Viennet 2023-07-26 14:07:42 +02:00
parent 740749e37e
commit b04930870e
2 changed files with 62 additions and 50 deletions

View File

@ -1328,6 +1328,13 @@ tr.etuddem td {
color: rgb(100, 100, 100); color: rgb(100, 100, 100);
font-style: italic; font-style: italic;
} }
table.gt_table tr.etuddem td a {
color: red;
}
table.gt_table tr.etuddem td.etudinfo:first-child::after {
color: red;
content: " (dem.)";
}
td.etudabs, td.etudabs,
td.etudabs a.discretelink, td.etudabs a.discretelink,

View File

@ -14,48 +14,53 @@ function get_etudid_from_elem(e) {
} }
$().ready(function () { $().ready(function () {
var elems = $(".etudinfo:not(th)");
var elems = $(".etudinfo");
var q_args = get_query_args(); var q_args = get_query_args();
var args_to_pass = new Set( var args_to_pass = new Set([
["formsemestre_id", "group_ids", "group_id", "partition_id", "formsemestre_id",
"moduleimpl_id", "evaluation_id" "group_ids",
"group_id",
"partition_id",
"moduleimpl_id",
"evaluation_id",
]); ]);
var qs = ""; var qs = "";
for (var k in q_args) { for (var k in q_args) {
if (args_to_pass.has(k)) { if (args_to_pass.has(k)) {
qs += '&' + k + '=' + q_args[k]; qs += "&" + k + "=" + q_args[k];
} }
} }
for (var i = 0; i < elems.length; i++) { for (var i = 0; i < elems.length; i++) {
$(elems[i]).qtip({ $(elems[i]).qtip({
content: { content: {
ajax: { ajax: {
url: SCO_URL + "/etud_info_html?etudid=" + get_etudid_from_elem(elems[i]) + qs, url:
type: "GET" SCO_URL +
"/etud_info_html?etudid=" +
get_etudid_from_elem(elems[i]) +
qs,
type: "GET",
//success: function(data, status) { //success: function(data, status) {
// this.set('content.text', data); // this.set('content.text', data);
// xxx called twice on each success ??? // xxx called twice on each success ???
// console.log(status); // console.log(status);
} },
}, },
text: "Loading...", text: "Loading...",
position: { position: {
at: "right bottom", at: "right bottom",
my: "left top" my: "left top",
}, },
style: { style: {
classes: 'qtip-etud' classes: "qtip-etud",
}, },
hide: { hide: {
fixed: true, fixed: true,
delay: 300 delay: 300,
} },
// utile pour debugguer le css: // utile pour debugguer le css:
// hide: { event: 'unfocus' } // hide: { event: 'unfocus' }
}); });
} }
}); });