kleuren werden niet goed opgehaald bij resultaat matrix

This commit is contained in:
Monique
2022-06-10 10:35:52 +02:00
parent e4c852671b
commit e8a6bf85b7
13 changed files with 153 additions and 139 deletions
+2 -2
View File
@@ -464,7 +464,7 @@ ls.initIJkpuntenModel = function(){
self.ijkpunten.removeAll();
self.aantal('');
var teller = 0;
if(result ) {
if(result.lijsten[0].scores ) {
$.each(result.lijsten, function (i, p) {
if (p.scores || p.vergelijkingen) {
self.erzijnlijsten(true);
@@ -587,7 +587,7 @@ ls.initIJkpuntenModel = function(){
'selectie': selectieOrgversies,
'orgid': self.selectedOrg().id
};
console.log(submitData, "submitdata")
// showAjaxLoader();
self.lijsten.removeAll();
+6 -3
View File
@@ -91,7 +91,9 @@ $(function () {
this.organisaties = ko.observableArray([]);
if (p.users) {
$.each(p.users, function (j, k) {
dit.organisaties.push(new fAddOrgIndeling(k));
dit.organisaties.push(new fAddOrgIndeling(k));
})
}
}
@@ -126,8 +128,8 @@ $(function () {
this.gem = Math.round(parseFloat(k.gem));
}
this.num = k.nummer;
this.colorcode = '#e08885';
if(k.kleurcode) this.colorcode = k.kleurcode;
// this.colorcode = '#e08885';
this.colorcode = k.kleur ? k.kleur : "#cccccc";
if (k.disabled == "T" || k.disablenvt == "T") {
this.gem='';
this.colorcode="#cccccc";
@@ -264,6 +266,7 @@ $(function () {
// wordt aangeroepen voor dat alle orgversions zijn ingelezen en selectedOrgversion is gezet.
self.bezig(true);
self.orgversions.removeAll();
if (data) {
$.each(data, function (i, p) {
self.orgversions.push(new fAddOrgversion(p));