diff --git a/bin/SidebarDropDownMenu.js b/bin/SidebarDropDownMenu.js index d84f881892bd7a010645aba849203d77ff8f30a2..13d3559d4fbe68a3788ff4cb4f1508d724ffad07 100644 --- a/bin/SidebarDropDownMenu.js +++ b/bin/SidebarDropDownMenu.js @@ -51,13 +51,6 @@ define('package/quiqqer/menu/bin/SidebarDropDownMenu', [ return; } - /*var classNameStr = ToggleButton.className, - rotated = true; - - if (classNameStr.search('-down') == -1) { - rotated = false; - }*/ - runs = true; var LiLeft = this.getParent('li'); @@ -81,7 +74,6 @@ define('package/quiqqer/menu/bin/SidebarDropDownMenu', [ * open the next level of sub menu * * @param {HTMLLIElement} NavSubLeft - * @param {boolean} rotated * * @return Promise */ @@ -108,9 +100,10 @@ define('package/quiqqer/menu/bin/SidebarDropDownMenu', [ var Prev = NavSubLeft.getPrevious('.quiqqer-navigation-entry'), Icon = Prev.getChildren('.quiqqer-fa-levels-icon'); -// if (rotated === true) { + if (Icon.hasClass('fa-angle-double-right')) { Icon.addClass("fa-nav-levels-rotate"); -// } + } + resolve(); } }); @@ -121,7 +114,6 @@ define('package/quiqqer/menu/bin/SidebarDropDownMenu', [ * close the next level of sub menu * * @param {HTMLLIElement} NavSubLeft - * @param {boolean} rotated * * @return Promise */ @@ -142,9 +134,7 @@ define('package/quiqqer/menu/bin/SidebarDropDownMenu', [ var Prev = NavSubLeft.getPrevious('.quiqqer-navigation-entry'), Icon = Prev.getChildren('.quiqqer-fa-levels-icon'); -// if (rotated === true) { - Icon.removeClass("fa-nav-levels-rotate"); -// } + Icon.removeClass("fa-nav-levels-rotate"); resolve(); } }); diff --git a/bricks.xml b/bricks.xml index bbceff6856ddf932949731eb7e6b95be7eead5aa..bd5db29cac472df7127855548cfd74552b37067a 100644 --- a/bricks.xml +++ b/bricks.xml @@ -54,7 +54,7 @@ var="menu.control.navigation.setting.listType.none" /> </option> </setting> - <setting name="parentIcon" type="text"> + <!--<setting name="parentIcon" type="text"> <locale group="quiqqer/menu" var="menu.control.navigation.setting.parentIcon"/> </setting> @@ -63,7 +63,7 @@ </setting> <setting name="levelIcon" type="text"> <locale group="quiqqer/menu" var="menu.control.navigation.setting.levelIcon"/> - </setting> + </setting>--> </settings> </brick> diff --git a/locale.xml b/locale.xml index c097321d142cb72c185e14a66ad7b5a4131cb01e..9b59420d388784af597085c7a17c2dab3c5292c3 100644 --- a/locale.xml +++ b/locale.xml @@ -99,8 +99,8 @@ <ad><![CDATA[]]></ad> </locale> <locale name="menu.control.navigation.setting.levelIcon"> - <de><![CDATA[Weitere Ebenen Icon</br>Standard: </br>fa-angle-double-down]]></de> - <en><![CDATA[Navigation levels icon<br/>Default: </br>fa-angle-double-down]]></en> + <de><![CDATA[Weitere Ebenen Icon</br>Standard: </br>fa-angle-double-right]]></de> + <en><![CDATA[Navigation levels icon<br/>Default: </br>fa-angle-double-right]]></en> <ad><![CDATA[]]></ad> </locale> </groups> diff --git a/src/QUI/Menu/SidebarDropDownMenu.Advanced.css b/src/QUI/Menu/SidebarDropDownMenu.Advanced.css index 671aab91a9545bc09cee0796eafd365d2ae860cc..270d909534c4e07f34222e4adcd2f16f0d5f0771 100644 --- a/src/QUI/Menu/SidebarDropDownMenu.Advanced.css +++ b/src/QUI/Menu/SidebarDropDownMenu.Advanced.css @@ -62,7 +62,7 @@ } .fa-nav-levels-rotate { - transform: rotate(180deg); + transform: rotate(90deg); transition: all 0.2s; transition-timing-function: ease-in-out; } diff --git a/src/QUI/Menu/SidebarDropDownMenu.Advanced.html b/src/QUI/Menu/SidebarDropDownMenu.Advanced.html index 4b623949d81ff71e20148294e4ae052d3918d5f7..0a4966ad0983b6c4ea7e1a6067bccc8259cb6b2b 100644 --- a/src/QUI/Menu/SidebarDropDownMenu.Advanced.html +++ b/src/QUI/Menu/SidebarDropDownMenu.Advanced.html @@ -93,8 +93,7 @@ </div> {if $levels === false || $levels-1 >= $level} - <div class="quiqqer-sub-nav-div - {if !$Rewrite->isIdInPath($Child->getId())}quiqqer-navigation-close{/if}"> + <div class="quiqqer-sub-nav-div {if !$Rewrite->isIdInPath($Child->getId())}quiqqer-navigation-close{/if}"> {include file=$navTemplate Site=$Child diff --git a/src/QUI/Menu/SidebarDropDownMenu.Simple.css b/src/QUI/Menu/SidebarDropDownMenu.Simple.css index 5461dd55d9a6ba7fe76c9453b4deb1a667579f8a..a1a1f7f7f1d059742661482b32a91de4a52bdedb 100644 --- a/src/QUI/Menu/SidebarDropDownMenu.Simple.css +++ b/src/QUI/Menu/SidebarDropDownMenu.Simple.css @@ -52,7 +52,7 @@ } .fa-nav-levels-rotate { - transform: rotate(180deg); + transform: rotate(90deg); transition: all 0.2s; transition-timing-function: ease-in-out; } diff --git a/src/QUI/Menu/SidebarDropDownMenu.php b/src/QUI/Menu/SidebarDropDownMenu.php index 17bec68225e4700f313c9ec65880d1f319dd31ce..afd7670af0de0013bfc66b4cc81be5a4fc21a2cd 100644 --- a/src/QUI/Menu/SidebarDropDownMenu.php +++ b/src/QUI/Menu/SidebarDropDownMenu.php @@ -32,7 +32,7 @@ public function __construct($attributes = array()) 'listType' => 'fontAwesome', 'homeIcon' => 'fa-home', 'listIcon' => 'fa-angle-right', - 'levelIcon' => 'fa-angle-double-down', + 'levelIcon' => 'fa-angle-double-right', 'qui-class' => 'package/quiqqer/menu/bin/SidebarDropDownMenu', 'display' => 'simple' ));