Commit 858e746f authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

fix show comp when selecting a fram

parent 8307ef30
(function() {
function filter (e) {
console.log("ici ?");
let filter = e.target.value.toUpperCase();
let a = e.target.parentNode.querySelectorAll('a');
for (let k = 0; k < a.length; k++) {
......@@ -19,7 +18,6 @@
for (var i = 0; i < drops.length; i++) {
drops[i].querySelector('.iena-drop-input').addEventListener('focus', function(e) {
console.log("glag2");
/*let a = e.target.parentNode.querySelectorAll('a');
for (var i = 0; i < a.length; i++) {
a[i].style.display = "block";
......@@ -67,7 +65,6 @@
if(document.getElementById('framework_list')!== null){
let framework_list=document.getElementById('framework_list');
framework_list.querySelector('.iena-drop-input').addEventListener('focus', function(e) {
console.log("glag2");
/*let a = e.target.parentNode.querySelectorAll('a');
for (var i = 0; i < a.length; i++) {
a[i].style.display = "block";
......@@ -81,7 +78,6 @@
for (var j = 0; j < a.length; j++) {
a[j].onmousedown = function(e) {
console.log("iciiii");
//e.preventDefault();
let true_input = e.target.parentNode.parentNode.querySelector('.iena-drop-input-value');
let value = e.target.dataset.value;
......
......@@ -32,9 +32,10 @@ function updateTextComp(value, url){
}
function updateTextRef(value, url) {
console.log("ON UPDATEEEE ?");
$('.fram-iena').hide();
$('.fram-'+value).show();
// console.log(value);
$.ajax({
/*$.ajax({
url:url,
type: 'POST',
timeout: 10000,
......@@ -47,8 +48,7 @@ function updateTextRef(value, url) {
$('#desc_ref_iena').html(json_res.description);
document.getElementById("ref_mod").value = json_res.id;
$('#ref_panel').css("visibility", 'visible')
// $('#change_ref').css("visibility", 'visible')
}
});
});*/
}
......@@ -17,6 +17,7 @@ jQuery(document).ready(function($){
$('.fram-iena').hide();
$('#filter-iena-competence').keyup(function(){
var searchText = $(this).val();
$('ul > li').each(function(){
......@@ -310,7 +311,7 @@ function selectCompetency(obj){
}
var count=countSelectedCompetencies();
if(count==0){
$('#btn-comp-iena').addAttr('disabled');
$('#btn-comp-iena').attr('disabled');
}
$("#iena-counter-cpt").html(count);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment