"dropdown" -> "dropDown"
authorLuzifr <szekely@woltlab.com>
Mon, 5 Dec 2011 16:58:14 +0000 (17:58 +0100)
committerLuzifr <szekely@woltlab.com>
Mon, 5 Dec 2011 16:58:14 +0000 (17:58 +0100)
I don't like that change, because too much CamelCase makes me sick and
destroys readability, but for consistency-reasons i'll do it …

wcfsetup/install/files/acp/style/wcf.css
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/lib/system/template/plugin/PagesFunctionTemplatePlugin.class.php

index 4e595a33f6795cb10adb92f243e7825979b502ad..8646cb1a48d2e5e3a489cb7829ec44ef341fdce7 100644 (file)
@@ -361,27 +361,27 @@ nav.topMenu > div > ul > li:hover a {
        border-color: rgba(255, 255, 255, .5);
 }
 
-nav.topMenu > div > ul > li .dropdownCaption,
-nav.topMenu > div > ul > li .dropdownCaption a {
+nav.topMenu > div > ul > li .dropDownCaption,
+nav.topMenu > div > ul > li .dropDownCaption a {
        padding-right: 5px;
 }
 
-nav.topMenu > div > ul > li:hover .dropdownCaption,
-nav.topMenu > div > ul > li:hover .dropdownCaption a {
+nav.topMenu > div > ul > li:hover .dropDownCaption,
+nav.topMenu > div > ul > li:hover .dropDownCaption a {
        text-shadow: 0 -1px 0 rgba(0, 0, 0, .7);
        color: #fff;
        background-color: rgba(0, 0, 0, .7);
 }
 
-nav.topMenu > div > ul > li > .dropdownCaption > .badge,
-nav.topMenu > div > ul > li:hover > .dropdownCaption > .badge {
+nav.topMenu > div > ul > li > .dropDownCaption > .badge,
+nav.topMenu > div > ul > li:hover > .dropDownCaption > .badge {
        font-size: 75%;
        color: #369 !important;
        margin: -3px 3px;
        padding: 1px 3px;
 }
 
-nav.topMenu > div > ul > li > .dropdownCaption > img {
+nav.topMenu > div > ul > li > .dropDownCaption > img {
        margin: -7px 0 -5px 0;
 }
 
@@ -389,9 +389,9 @@ nav.topMenu > div > ul > li > span:not(.badge) {
        padding: 6px;
 }
 
-nav.topMenu ul li .dropdownCaption {
+nav.topMenu ul li .dropDownCaption {
        cursor: pointer;
-       background-image: url('../../icon/dropdown2.svg');
+       background-image: url('../../icon/dropDown2.svg');
        background-position: 97% center;
        background-repeat: no-repeat;
        padding-right: 15px !important;
@@ -403,7 +403,7 @@ nav.topMenu ul li .dropdownCaption {
 /* ToDo: Top-Menu Dropdown Tweaks */
 
 /* Auto-Opening Dropdowns */
-nav.topMenu ul li:hover .dropdownCaption ~ .dropdown {
+nav.topMenu ul li:hover .dropDownCaption ~ .dropDown {
        border-color: rgba(255, 255, 255, .5);
        background-color: rgba(0, 0, 0, .7);
        height: auto !important;
@@ -414,12 +414,12 @@ nav.topMenu ul li {
        white-space: nowrap;
 }
 
-nav.topMenu ul li .dropdown {
+nav.topMenu ul li .dropDown {
        border-width: 0 1px 1px 1px;
        border-radius: 0 0 5px 5px;
 }
 
-nav.topMenu ul li .dropdown > :first-child {
+nav.topMenu ul li .dropDown > :first-child {
        border-top-width: 0;
 }
 
@@ -1165,7 +1165,7 @@ li > .badgeButton {
 
 /* ############## ToDo: Dropdown Global ############## */
 
-.dropdown {
+.dropDown {
        color: #fff;
        border-width: 0 1px 1px 1px;
        border-style: solid;
@@ -1195,8 +1195,8 @@ li > .badgeButton {
 
 /* Dropdown Items */
 
-.dropdown > li,
-.dropdown > div {
+.dropDown > li,
+.dropDown > div {
        text-shadow: none;
        color: #ccc;
        cursor: pointer; 
@@ -1208,37 +1208,37 @@ li > .badgeButton {
        transition: color background .2s linear;
 }
 
-.dropdown > div {
+.dropDown > div {
        padding: 5px 7px;
 }
 
-.dropdown > :first-child {
+.dropDown > :first-child {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
 }
 
-.dropdown > :last-child {
+.dropDown > :last-child {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
 }
 
-.dropdown > :hover:not(ul):not(.pointer),
-.dropdown > .active {
+.dropDown > :hover:not(ul):not(.pointer),
+.dropDown > .active {
        color: #fff;
        background-color: rgba(0, 0, 0, .5);
 }
 
-.dropdown > li.divider:not(:first-child) {
+.dropDown > li.divider:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, .7);
 }
 
-.dropdown > li a {
+.dropDown > li a {
        text-decoration: none;
        padding: 5px 7px;
        display: inline-block;
 }
 
-.dropdown > li a:hover {
+.dropDown > li a:hover {
        color: #fff !important;
 }
 
@@ -1790,7 +1790,7 @@ textarea[disabled='disabled'] {
 
 /* Dropdown Caption */
 
-.preInput .dropdownCaption {
+.preInput .dropDownCaption {
        letter-spacing: -1px;
        cursor: pointer;
        border-radius: 3px 0 0 3px;
@@ -1800,20 +1800,20 @@ textarea[disabled='disabled'] {
        vertical-align: middle;
 }
 
-.preInput .dropdownCaption span {
+.preInput .dropDownCaption span {
        margin-right: -1px;
        padding-left: 5px;
        white-space: nowrap;
 }
 
-.preInput .dropdownCaption span.active {
-       background-image: url('../../icon/dropdown1.svg');
+.preInput .dropDownCaption span.active {
+       background-image: url('../../icon/dropDown1.svg');
        background-position: right center;
        background-repeat: no-repeat;
        padding-right: 10px;
 }
 
-.preInput .dropdown > li.missingValue { /* ToDo */
+.preInput .dropDown > li.missingValue { /* ToDo */
        /* color: #990; */
        background-image: url('../../icon/systemWarning.svg');
        background-size: 16px;
@@ -2748,7 +2748,7 @@ tr .columnURL {
        width: 7px;
 }
 
-.pageNavigation ul li.children .dropdown {
+.pageNavigation ul li.children .dropDown {
        text-align: left;
        border-color: transparent;
        border-radius: 3px;
@@ -2770,19 +2770,19 @@ tr .columnURL {
        transition: opacity .2s linear;
 }
 
-.pageNavigation ul li.children:hover .dropdown {
+.pageNavigation ul li.children:hover .dropDown {
        border-color: rgba(255, 255, 255, .7);
        height: auto;
        overflow: visible;
        opacity: 1;
 }
 
-.pageNavigation ul li.children .dropdown ul {
+.pageNavigation ul li.children .dropDown ul {
        padding: 0 5px 5px 2px;
        display: block;
 }
 
-.pageNavigation ul li.children .dropdown ul li {
+.pageNavigation ul li.children .dropDown ul li {
        margin-top: 5px;
        margin-left: 3px;
 }
@@ -3202,7 +3202,7 @@ img[src*='enable'] {
 }
 
 .clipboardEditor > ul > li > span {
-       background-image: url('../../icon/dropdown1.svg');
+       background-image: url('../../icon/dropDown1.svg');
        background-position: right center;
        background-repeat: no-repeat;
        padding-right: 12px;
@@ -3270,7 +3270,7 @@ input[type='button'],
 .badgeButton,
 .pageNavigation ul li:not(.children),
 .clipboardEditor > ul > li,
-.preInput .dropdownCaption {
+.preInput .dropDownCaption {
        text-decoration: none;
        text-shadow: 0 1px 0 #fff;
        color: #999;
@@ -3321,7 +3321,7 @@ input[type='button'].default:hover,
 .badgeButton:hover,
 .pageNavigation ul li:not(.disabled):not(.children):hover,
 .clipboardEditor > ul > li:hover,
-.preInput:hover .dropdownCaption {
+.preInput:hover .dropDownCaption {
        color: #666;
        border-width: 1px;
        border-style: solid;
@@ -3350,7 +3350,7 @@ input[type='button'].default:focus,
 .badgeButton:focus,
 .pageNavigation ul li:not(.disabled):not(.children):active,
 .clipboardEditor > ul > li:focus,
-.preInput .dropdownCaption:focus,
+.preInput .dropDownCaption:focus,
 button:active,
 input[type='reset']:active,
 input[type='submit']:active,
@@ -3363,7 +3363,7 @@ input[type='button'].default:active,
 .badgeButton:active,
 .pageNavigation ul li:not(.disabled):not(.children):focus,
 .clipboardEditor > ul > li:active,
-.preInput .dropdownCaption:active {
+.preInput .dropDownCaption:active {
        color: #333;
        border-width: 1px;
        border-style: solid;
index 8010afbbadbafcbbc954332324370cd06e94dd75..ba6abc54574f6f21f29651d94b25cd8d97dfe8f8 100644 (file)
@@ -89,8 +89,8 @@
                                        <div>
                                                <ul>
                                                        <li id="userMenu" class="userMenu"><!-- ToDo: We need an ID and/or class for each list here, this ID may also change! -->
-                                                               <span class="dropdownCaption">{lang}wcf.user.userNote{/lang}</span>
-                                                               <ul class="dropdown">
+                                                               <span class="dropDownCaption">{lang}wcf.user.userNote{/lang}</span>
+                                                               <ul class="dropDown">
                                                                        <li><a href="{link controller='Logout'}t={@SECURITY_TOKEN}{/link}" onclick="return confirm('{lang}wcf.user.logout.sure{/lang}')">{lang}wcf.user.logout{/lang}</a></li>
                                                                </ul>
                                                        </li>
index add248259cc6f7d8483541872c9d0e996b4b2364..6a791f76c57916735c1e9f48480396158f469d36 100644 (file)
@@ -1735,7 +1735,7 @@ WCF.MultipleLanguageInput.prototype = {
        _prepareElement: function(enableOnInit) {
                this._element.wrap('<div class="preInput" />');
                var $wrapper = this._element.parent();
-               var $button = $('<p class="dropdownCaption"><span>enable i18n</span></p>').prependTo($wrapper);
+               var $button = $('<p class="dropDownCaption"><span>enable i18n</span></p>').prependTo($wrapper);
 
                $button.click($.proxy(this._enable, this));
                WCF.CloseOverlayHandler.addCallback(this._element.wcfIdentify(), $.proxy(this._closeSelection, this));
@@ -1769,7 +1769,7 @@ WCF.MultipleLanguageInput.prototype = {
 
                        // insert list
                        if (this._list === null) {
-                               this._list = $('<ul class="dropdown"></ul>').insertAfter($button.parent());
+                               this._list = $('<ul class="dropDown"></ul>').insertAfter($button.parent());
                                this._list.click(function(event) {
                                        // discard click event
                                        event.stopPropagation();
@@ -1858,7 +1858,7 @@ WCF.MultipleLanguageInput.prototype = {
                $button.addClass('active');
 
                // update label
-               this._list.prev('.dropdownCaption').children('span').text(this._availableLanguages[this._languageID]);
+               this._list.prev('.dropDownCaption').children('span').text(this._availableLanguages[this._languageID]);
 
                // close selection and set focus on input element
                this._closeSelection();
@@ -1870,7 +1870,7 @@ WCF.MultipleLanguageInput.prototype = {
         */
        _disable: function() {
                // remove active marking
-               this._list.prev('.dropdownCaption').children('span').removeClass('active').text('enable i18n');
+               this._list.prev('.dropDownCaption').children('span').removeClass('active').text('enable i18n');
                this._closeSelection();
 
                // update element value
@@ -3807,7 +3807,7 @@ $.widget('ui.wcfPages', {
                                        $leftChildrenInput.keyup($.proxy(this._handleInput, this));
                                        $leftChildrenInput.blur($.proxy(this._stopInput, this));
                                        
-                                       var $leftChildrenContainer = $('<div class="dropdown"></div>');
+                                       var $leftChildrenContainer = $('<div class="dropDown"></div>');
                                        $leftChildren.append($leftChildrenContainer);
                                        
                                        var $leftChildrenList = $('<ul></u>');
@@ -3850,7 +3850,7 @@ $.widget('ui.wcfPages', {
                                        $rightChildrenInput.keyup($.proxy(this._handleInput, this));
                                        $rightChildrenInput.blur($.proxy(this._stopInput, this));
                                        
-                                       var $rightChildrenContainer = $('<div class="dropdown"></div>');
+                                       var $rightChildrenContainer = $('<div class="dropDown"></div>');
                                        $rightChildren.append($rightChildrenContainer);
                                        
                                        var $rightChildrenList = $('<ul></ul>');
index c0d20bf2ad5bab5be7ae1b0f78b9f0ef1bb636a5..bdd34602c15ccffd303bce5661f142c27b7d05df 100644 (file)
@@ -153,7 +153,7 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin {
                                        $html .= $this->makeLink($link, 2, $tagArgs['page']);
                                }
                                else {
-                                       $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption">&hellip;<img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="pageNo" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+                                       $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropDownCaption">&hellip;<img src="'.self::getIconPath('dropDown1').'" alt="" /></a><input type="text" name="pageNo" class="tiny" /><div class="dropDown"><span class="pointer"><span></span></span><ul>'."\n";
                                        
                                        $k = 0;
                                        $step = intval(ceil(($left - 2) / self::SHOW_SUB_LINKS));
@@ -177,7 +177,7 @@ class PagesFunctionTemplatePlugin implements IFunctionTemplatePlugin {
                                        $html .= $this->makeLink($link, $tagArgs['pages'] - 1, $tagArgs['page']);
                                }
                                else {
-                                       $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption">&hellip;<img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="page" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+                                       $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropDownCaption">&hellip;<img src="'.self::getIconPath('dropDown1').'" alt="" /></a><input type="text" name="page" class="tiny" /><div class="dropDown"><span class="pointer"><span></span></span><ul>'."\n";
                                        
                                        $k = 0;
                                        $step = intval(ceil(($tagArgs['pages'] - $right) / self::SHOW_SUB_LINKS));