Current Path :
/
home
/
develito
/
public_html
/
components
/
com_sobipro
/
lib
/
js
/
adm
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/components/com_sobipro/lib/js/adm/menu.js
/** * @package: SobiPro Library * * @author * Name: Sigrid Suski & Radek Suski, Sigsiu.NET GmbH * Email: sobi[at]sigsiu.net * Url: https://www.Sigsiu.NET * * @copyright Copyright (C) 2006 - 2018 Sigsiu.NET GmbH (https://www.sigsiu.net). All rights reserved. * @license GNU/LGPL Version 3 * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 * as published by the Free Software Foundation, and under the additional terms according section 7 of GPL v3. * See http://www.gnu.org/licenses/lgpl.html and https://www.sigsiu.net/licenses. * * 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 Lesser General Public License for more details. */ SobiPro.jQuery( document ).ready( function () { SobiPro.jQuery( '#SPMenuCtrlBt' ).click( function () { SPRightMenu(); } ); function SPRightMenu() { if ( SobiPro.jQuery( '#SPRightMenu' ).css( 'display' ) == 'block' ) { SobiPro.jQuery( '#SPRightMenu' ).hide( 'slide' ); SobiPro.jQuery( '#SPRightMenuHold' ).hide(); SobiPro.jQuery( '#SPRightMenuHold' ).html( SobiPro.jQuery( '#SPMenuCtrl' ).html() ); SobiPro.jQuery( '#SPMenuCtrl' ).html( '' ); SobiPro.jQuery( '#SPMenuCtrlBt' ).html( '<i class="icon-plus"></i> ' + SobiPro.Txt( 'TB.SIDEMENU' ) ); SobiPro.jQuery( '#SPRightMenuHold' ).fadeIn( 'slide' ); SobiPro.jQuery( '#SPRightMenu' ) .siblings( 'div' ) .removeClass( 'span9' ) .addClass( 'span12' ) .addClass( 'firstspan' ); SobiPro.jQuery( '#SPMenuCtrlBt' ).click( function () { SPRightMenu(); } ); try { localStorage.setItem( 'SobiProSideMenu', 'closed' ); } catch (x) { } } else { SobiPro.jQuery( '#SPRightMenu' ).show( 'slide' ); SobiPro.jQuery( '#SPMenuCtrl' ).html( SobiPro.jQuery( '#SPRightMenuHold' ).html() ); SobiPro.jQuery( '#SPRightMenuHold' ).html( '' ); SobiPro.jQuery( '#SPMenuCtrlBt' ).html( '<i class="icon-minus"></i>' ); SobiPro.jQuery( '#SPRightMenu' ) .siblings( 'div' ) .removeClass( 'span12' ) .removeClass( 'firstspan' ) .addClass( 'span9' ); SobiPro.jQuery( '#SPMenuCtrlBt' ).click( function () { SPRightMenu(); } ); try { localStorage.setItem( 'SobiProSideMenu', 'open' ); } catch (x) { } } } const menuState = localStorage.getItem( 'SobiProSideMenu' ); if ( menuState == 'closed' ) { SobiPro.jQuery( '#SPMenuCtrlBt' ).click(); } } );