russenopslag
This commit is contained in:
@@ -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
|
||||
});
|
||||
Reference in New Issue
Block a user