Gitlab CSE Unil

Commit b927db95 authored by M. Chardon's avatar M. Chardon
Browse files

reglage affichage lien activité moodle

parent 443da744
......@@ -273,19 +273,16 @@ define([
},
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......
......@@ -27067,19 +27067,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......@@ -27082,19 +27082,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......@@ -27067,19 +27067,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......@@ -27067,19 +27067,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......@@ -16641,19 +16641,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
......@@ -16641,19 +16641,16 @@ define('anobj-mgr/views/anobj/properties-panel',[
},
 
'attp_label': function ($el, model, opts) {
var optsDetect = true
if (opts) {
if (typeof opts === 'string'){
opts = JSON.parse(opts);
}
if (typeof opts === 'object' && opts.url && opts.label) {
$el.text(opts.label);
} else if (typeof opts === 'string') {
var obj = JSON.parse(opts);
console.log(obj);
optsDetect = false;
} else {
optsDetect = false;
$el.closest('.aom-prop-shm').hide();
}
}
if (!optsDetect) {
} else {
$el.closest('.aom-prop-shm').hide();
}
},
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