Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-competency-block
Commits
858e746f
Commit
858e746f
authored
Jul 09, 2021
by
Myriam Delaruelle
Browse files
fix show comp when selecting a fram
parent
8307ef30
Changes
3
Hide whitespace changes
Inline
Side-by-side
js/dropdown.js
View file @
858e746f
(
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
;
...
...
js/file.js
View file @
858e746f
...
...
@@ -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')
}
});
});
*/
}
js/matrix.js
View file @
858e746f
...
...
@@ -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
'
).
a
ddA
ttr
(
'
disabled
'
);
$
(
'
#btn-comp-iena
'
).
attr
(
'
disabled
'
);
}
$
(
"
#iena-counter-cpt
"
).
html
(
count
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment