Merge branch 'feature/SWVsop' into develop
This commit is contained in:
@@ -361,7 +361,13 @@ mh.initCompactSopModel = function(){
|
||||
});//each
|
||||
if (self.schooljaren() ) self.selectedSchooljaar(self.schooljaren()[0]);
|
||||
self.organisaties(data.organisaties);
|
||||
self.selectedOrganisatie(self.organisaties()[0]);
|
||||
if(self.organisaties().length === 1)self.selectedOrganisatie(self.organisaties()[0])
|
||||
else{
|
||||
$.each(self.organisaties(), function(i,o){
|
||||
if(o.soort === self.toporgnr())
|
||||
self.selectedOrganisatie(self.organisaties()[i])
|
||||
})
|
||||
}
|
||||
} // if
|
||||
self.druk(false);
|
||||
if (typeof callback == "function") callback()
|
||||
@@ -374,6 +380,8 @@ mh.initCompactSopModel = function(){
|
||||
if(self.selectedSchooljaar() === undefined || self.selectedOrganisatie === undefined){
|
||||
return;
|
||||
}
|
||||
console.log(self.selectedOrganisatie().soort, 'orgsoort')
|
||||
|
||||
switch(self.selectedOrganisatie().soort){
|
||||
|
||||
case '1':
|
||||
|
||||
Reference in New Issue
Block a user