russenopslag

This commit is contained in:
Monique
2022-03-28 15:04:56 +02:00
parent 7031844f7b
commit 8696bc32b6
4 changed files with 22 additions and 247 deletions
+5
View File
@@ -62,6 +62,11 @@ ls.initBeheerModel = function(){
mh.initScoresModel();
$("#pagScores").hide().show("slide", {direction:"right"} ,200)
break;
case "instrumentencp":
console.log('bij het goede tabblad')
mh.initInstrumentenCPModel();
$("#pagInstrumentenCompactSop").hide().show("slide", {direction:"right"} ,200)
break;
}; // switch
},
} ; // definition van model
@@ -12,15 +12,15 @@ $(function(){
mh.InstrumentenCPModel.initModel();
}
else {
ls.InstrumentenCPModel = {
mh.InstrumentenCPModel = {
modules : ko.observableArray([]),
selectedModule : ko.observable(''),
initBindings :function(){
var self = ls.VersiesModel;
var self = mh.InstrumentenCPModel;
if (!ko.dataFor(document.getElementById('pagInstrumentenCompactSop')) ) {
ko.applyBindings(ls.VersiesModel, document.getElementById("pagInstrumentenCompactSop"));
ko.applyBindings(mh.InstrumentenCPModel, document.getElementById("pagInstrumentenCompactSop"));
}
$.post("index.php/monpas/beheer/getmodules", function(result){
@@ -31,7 +31,7 @@ $(function(){
self.modules.push(new fAddModule(p));
});
self.selectedModule(self.modules[0]);
}; // if rsult
} // if rsult
self.initModel();
},'json');
},
@@ -40,7 +40,7 @@ $(function(){
},
} ; // definition van model
mh.initInstrumentenCPModel().initBindings();
}; // else
}// function initVersiesModel
mh.InstrumentenCPModel().initBindings();
} // else
}// function initInstrumentenCPModel
});