ScoDoc-PE/app/static/js/edit_ue.js

17 lines
488 B
JavaScript
Raw Normal View History

2020-09-26 16:19:37 +02:00
// Affiche et met a jour la liste des UE partageant le meme code
2021-06-21 18:46:35 +02:00
$().ready(function () {
2020-09-26 16:19:37 +02:00
update_ue_list();
$("#tf_ue_code").bind("keyup", update_ue_list);
});
function update_ue_list() {
var ue_id = $("#tf_ue_id")[0].value;
var ue_code = $("#tf_ue_code")[0].value;
2021-06-21 18:46:35 +02:00
var query = SCO_URL + "/Notes/ue_sharing_code?ue_code=" + ue_code + "&hide_ue_id=" + ue_id + "&ue_id=" + ue_id;
$.get(query, '', function (data) {
$("#ue_list_code").html(data);
2020-09-26 16:19:37 +02:00
});
2021-06-21 18:46:35 +02:00
}