Fixed issue in page menu administration
authorMarcel Werk <burntime@woltlab.com>
Fri, 26 Apr 2013 14:54:13 +0000 (16:54 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 26 Apr 2013 14:54:13 +0000 (16:54 +0200)
wcfsetup/install/files/acp/templates/pageMenuItemAdd.tpl
wcfsetup/install/files/acp/templates/selectOptionType.tpl

index 472adbba97c048c65a47ee01bc747f7810be79df..49afc45bffb37a2a4f37fef694aa905fe3021b6a 100644 (file)
@@ -7,6 +7,7 @@
                var $parentMenuItemContainer = $('#parentMenuItemContainer');
                var $isInternalLink = $('input[name=isInternalLink]').filter('[value=1]');
                var $menuItemControllerContainer = $('#menuItemControllerContainer');
+               var $menuItemLinkContainer = $('#menuItemLinkContainer');
                
                function handleMenuPosition() {
                        if ($menuPosition.val() === 'header') {
                function handleIsInternalLink() {
                        if ($isInternalLink.is(':checked')) {
                                $menuItemControllerContainer.show();
+                               $menuItemLinkContainer.hide();
                        }
                        else {
                                $menuItemControllerContainer.hide();
+                               $menuItemLinkContainer.show();
                        }
                }
                
                        <dl id="menuItemControllerContainer"{if $errorField == 'menuItemController'} class="formError"{/if}>
                                <dt><label for="menuItemController">{lang}wcf.acp.pageMenu.menuItemController{/lang}</label></dt>
                                <dd>
-                                       <input type="text" name="menuItemController" id="menuItemController" value="{$menuItemController}" class="medium" />
+                                       <input type="text" name="menuItemController" id="menuItemController" value="{$menuItemController}" class="long" />
                                        {if $errorField == 'menuItemController'}
                                                <small class="innerError">
                                                        {if $errorType == 'empty'}
                                </dd>
                        </dl>
                        
-                       <dl{if $errorField == 'menuItemLink'} class="formError"{/if}>
+                       <dl id="menuItemLinkContainer"{if $errorField == 'menuItemLink'} class="formError"{/if}>
                                <dt><label for="menuItemLink">{lang}wcf.acp.pageMenu.menuItemLink{/lang}</label></dt>
                                <dd>
                                        <input type="text" name="menuItemLink" id="menuItemLink" value="{$menuItemLink}" class="long" />
index 25332e39d27cc1c31acc1d4b3740a93bf2c15e8b..e0e2ce6cdf6d3df8e23626a6ffbc198051ff5329 100644 (file)
@@ -1,5 +1,5 @@
 <select id="{$option->optionName}" name="values[{$option->optionName}]">
-       <option value=""></option>
+       {if $option->allowEmptyValue}<option value=""></option>{/if}
        {foreach from=$selectOptions key=key item=selectOption}
                <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
        {/foreach}