/*********************************************************************** * MyLittleJavaScript * ************************************************************************ * Created by Michael Loesler * * * * This script is part of my little forum * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***********************************************************************/ /*********************************************************************** * NOTICE: In order to reduce bandwidth usage, a minimized version of * * this script is used by default (admin.min.js). Changes in this file * * do not have any effect unless it is loaded by the template * * (themes/[THEME FOLDER]/main.tpl). * * The minimized version was created with the YUI Compressor * * , i.e. * * . * ***********************************************************************/ /** * Kleiner Feature im Adminbereich werden * von diesem Objekt realisiert. * Hauptsaechlich handelt es sich um Sicherheitsabfragen */ function MyLittleAdmin() { /** * Initialisiert in den globalen Einstellungen * den CSS-Klassenwechsel bei RADIO und CHECKBOX */ var initGlobalSettings = function() { var f = document.getElementById("settings"); if (!f) return; var changeClassName = function(id, active) { if (id && document.getElementById(id+"_label")) document.getElementById(id+"_label").className = active?"active":"inactive"; }; var changeCollectionClassName = function(col) { for (var i=0; i