initial commit
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
// $(function() {
|
||||
// ls.initModelHome = function(){
|
||||
|
||||
// };
|
||||
// if (ls.ModelHome !==undefined) {
|
||||
// ls.ModelHome.refreshPage(); }
|
||||
// else {
|
||||
// $.getJSON('index.php/home/get_submenu', function(data){
|
||||
// ls.ModelHome = {
|
||||
// kButPartituur : ko.observable("Partituur") ,
|
||||
// kButBeheer : ko.observable("Beheer") ,
|
||||
// kButOverzichten : ko.observable("Overzichten") ,
|
||||
// headItem : ko.observable(1),
|
||||
// subItem : ko.observable(1),
|
||||
// headMenu : ko.observableArray(data.menu),
|
||||
// OrgName : ko.observable(data.orgnaam) ,
|
||||
// UFullName : ko.observable(data.user_fullname),
|
||||
|
||||
// ClickMenu : function(){
|
||||
|
||||
// if (this.id==ls.ModelHome.headItem()) return;
|
||||
// ls.ModelHome.headItem(this.id);
|
||||
// $('.showhoofdpagina').removeClass('showhoofdpagina');
|
||||
// $("#hoofdpag" + this.id).addClass('.showhoofdpagina');
|
||||
// varIndex= -1;
|
||||
// $('.showsubpagina').removeClass('showsubpagina');
|
||||
// ls.ModelHome.subItem(0);
|
||||
// for (var i=0, j= ls.ModelHome.headMenu().length; i < j; i++){
|
||||
// if(ls.ModelHome.headMenu()[i]["id"] == this.id) varIndex = i;
|
||||
// }
|
||||
// if (varIndex > -1){
|
||||
// varSubmenu = ls.ModelHome.headMenu()[varIndex]["submenu"];
|
||||
// varSubpagnr = varSubmenu[0]['id'];
|
||||
// ls.ModelHome.subItem(varSubpagnr);
|
||||
// $('.showsubpagina').removeClass('showsubpagina');
|
||||
// $('#Subpag'+varSubpagnr).addClass('showsubpagina');
|
||||
// }
|
||||
// // tijdelijk uitgesterd if(this.id==6) tw.initOrgs();
|
||||
// } ,
|
||||
|
||||
// ClickSub : function(){
|
||||
// if (this.id == ls.ModelHome.subItem()) return;
|
||||
// ls.ModelHome.subItem(this.id);
|
||||
// $('.showsubpagina').removeClass('showsubpagina');
|
||||
// $('#Subpag'+this.id).addClass('showsubpagina');
|
||||
// } ,
|
||||
// ChangeMyProfile : function(){
|
||||
// alert('hier komt ChangeMyProfile');
|
||||
// } ,
|
||||
// ChangeOrg: function(){
|
||||
// alert('hier komt ChangeOrg');
|
||||
// },
|
||||
|
||||
// ClickLogout: function() {
|
||||
// $.post('index.php/login/logout', function(){
|
||||
// location.reload(true);
|
||||
// });
|
||||
// }
|
||||
// }; // einde bij definitie van ModHome
|
||||
// ko.applyBindings(ls.ModelHome, document.getElementById("databindclass"));
|
||||
// $("#sub2").attr("class","sub selected");
|
||||
// $("#sub1").removeClass("selected");
|
||||
|
||||
// } ) ;// einde bij getJson
|
||||
|
||||
// }; // einde else bij ModHome undefined
|
||||
// });
|
||||
Reference in New Issue
Block a user