File indexing completed on 2025-05-04 05:29:34

0001 /**
0002  *  ocs-webserver
0003  *
0004  *  Copyright 2016 by pling GmbH.
0005  *
0006  *    This file is part of ocs-webserver.
0007  *
0008  *    This program is free software: you can redistribute it and/or modify
0009  *    it under the terms of the GNU Affero General Public License as
0010  *    published by the Free Software Foundation, either version 3 of the
0011  *    License, or (at your option) any later version.
0012  *
0013  *    This program is distributed in the hope that it will be useful,
0014  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  *    GNU Affero General Public License for more details.
0017  *
0018  *    You should have received a copy of the GNU Affero General Public License
0019  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020  **/
0021 $(document).ready(function () {
0022 // Menu initialisieren
0023 
0024     var activeNavId = $.cookie('activeMenuPoint');
0025 
0026     $("#navigation").accordion({
0027         navigation: true,
0028         autoHeight: false,
0029         collapsible: true,
0030         active: (activeNavId != "") ? '#' + activeNavId : false
0031     });
0032 
0033 //Hover-Fkt für Icon-Buttons
0034     $(".alexIcon").hover(
0035         function () {
0036             $(this).addClass("ui-state-hover");
0037         },
0038         function () {
0039             $(this).removeClass("ui-state-hover");
0040         }
0041     );
0042 
0043 // Hover-Fkt für Buttons       
0044     $(".button_normal").hover(
0045         function () {
0046             $(this).addClass("ui-state-hover");
0047         },
0048         function () {
0049             $(this).removeClass("ui-state-hover");
0050         }
0051     );
0052 
0053 // Formelemente als notwendig markieren
0054     $(".required").append("&nbsp;*");
0055 
0056 // Navigation Backend
0057     $("#navigation li a").click(function () {
0058         var headerElement = $(this).parent().parent().prev();
0059         var activeElement = $("#navigation").accordion('option', 'active');
0060         $.cookie('activeMenuPoint', headerElement.attr("id"), {path: '/'});
0061     });
0062 });