Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 62 additions and 50 deletions
Showing only changes of commit b04930870e - Show all commits

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

@ -3,59 +3,64 @@
// utilise jQuery / qTip // utilise jQuery / qTip
function get_etudid_from_elem(e) { function get_etudid_from_elem(e) {
// renvoie l'etudid, obtenu a partir de l'id de l'element // renvoie l'etudid, obtenu a partir de l'id de l'element
// qui est soit de la forme xxxx-etudid, soit tout simplement etudid // qui est soit de la forme xxxx-etudid, soit tout simplement etudid
var etudid = e.id.split("-")[1]; var etudid = e.id.split("-")[1];
if (etudid == undefined) { if (etudid == undefined) {
return e.id; return e.id;
} else { } else {
return etudid; return etudid;
} }
} }
$().ready(function () { $().ready(function () {
var elems = $(".etudinfo:not(th)");
var elems = $(".etudinfo"); var q_args = get_query_args();
var args_to_pass = new Set([
var q_args = get_query_args(); "formsemestre_id",
var args_to_pass = new Set( "group_ids",
["formsemestre_id", "group_ids", "group_id", "partition_id", "group_id",
"moduleimpl_id", "evaluation_id" "partition_id",
]); "moduleimpl_id",
var qs = ""; "evaluation_id",
for (var k in q_args) { ]);
if (args_to_pass.has(k)) { var qs = "";
qs += '&' + k + '=' + q_args[k]; for (var k in q_args) {
} if (args_to_pass.has(k)) {
} qs += "&" + k + "=" + q_args[k];
for (var i = 0; i < elems.length; i++) {
$(elems[i]).qtip({
content: {
ajax: {
url: SCO_URL + "/etud_info_html?etudid=" + get_etudid_from_elem(elems[i]) + qs,
type: "GET"
//success: function(data, status) {
// this.set('content.text', data);
// xxx called twice on each success ???
// console.log(status);
}
},
text: "Loading...",
position: {
at: "right bottom",
my: "left top"
},
style: {
classes: 'qtip-etud'
},
hide: {
fixed: true,
delay: 300
}
// utile pour debugguer le css:
// hide: { event: 'unfocus' }
});
} }
}
for (var i = 0; i < elems.length; i++) {
$(elems[i]).qtip({
content: {
ajax: {
url:
SCO_URL +
"/etud_info_html?etudid=" +
get_etudid_from_elem(elems[i]) +
qs,
type: "GET",
//success: function(data, status) {
// this.set('content.text', data);
// xxx called twice on each success ???
// console.log(status);
},
},
text: "Loading...",
position: {
at: "right bottom",
my: "left top",
},
style: {
classes: "qtip-etud",
},
hide: {
fixed: true,
delay: 300,
},
// utile pour debugguer le css:
// hide: { event: 'unfocus' }
});
}
}); });