Style-prefixes & more …
authorLuzifr <szekely@woltlab.com>
Tue, 7 Feb 2012 17:47:23 +0000 (18:47 +0100)
committerLuzifr <szekely@woltlab.com>
Tue, 7 Feb 2012 17:47:23 +0000 (18:47 +0100)
acptemplates/languageEdit.tpl
acptemplates/languageList.tpl
acptemplates/languageServerList.tpl

index 18b2e7478b49d5170b2a5429ee0f0fdbb8853770..591961c515c6af56ce45c0859110ccabf6e22b0d 100644 (file)
@@ -58,7 +58,7 @@
 {/if}
 
 <div class="wcf-mainHeading">
-       <img src="{@RELATIVE_WCF_DIR}icon/languageEditL.png" alt="" />
+       <img src="{@RELATIVE_WCF_DIR}icon/language1.svg" alt="" />
        <div>
                <h2>{lang}wcf.acp.language.edit{/lang}</h2>
        </div>
@@ -75,8 +75,8 @@
 <div class="wcf-contentHeader">
        <div class="wcf-largeButtons">
                <ul>
-                       <li><a href="index.php?page=LanguageList{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/languageM.png" alt="" title="{lang}wcf.acp.menu.link.language.view{/lang}" class="wcf-button" /> <span>{lang}wcf.acp.menu.link.language.view{/lang}</span></a></li>
-                       <li><a href="index.php?form=LanguageSearch{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/searchM.png" alt="" title="{lang}wcf.acp.menu.link.language.view{/lang}" class="wcf-button" /> <span>{lang}wcf.acp.menu.link.language.search{/lang}</span></a></li>
+                       <li><a href="index.php?page=LanguageList{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/language1.svg" alt="" title="{lang}wcf.acp.menu.link.language.view{/lang}" class="wcf-button" /> <span>{lang}wcf.acp.menu.link.language.view{/lang}</span></a></li>
+                       <li><a href="index.php?form=LanguageSearch{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/search1.svg" alt="" title="{lang}wcf.acp.menu.link.language.view{/lang}" class="wcf-button" /> <span>{lang}wcf.acp.menu.link.language.search{/lang}</span></a></li>
                </ul>
        </div>
 </div>
@@ -87,7 +87,7 @@
                        <div class="formElement">
                                <p class="formField">
                                        <span>{lang}wcf.global.language.{@$language->languageCode}{/lang} ({@$language->languageCode})</span>
-                                       <img src="{@RELATIVE_WCF_DIR}icon/language{@$language->languageCode|ucfirst}S.png" alt="" />
+                                       <img src="{@RELATIVE_WCF_DIR}icon/language{@$language->languageCode|ucfirst}1.svg" alt="" />
                                </p>
                        </div>
                        
                                                
                                                <fieldset data-languageItem="{$languageItem}" class="languageItem" id="item{$languageItem|strtolower}">
                                                        <legend>
-                                                               {if $__wcf->getSession()->getPermission('admin.language.canDeleteLanguage')}<a onclick="return confirm('{lang}wcf.acp.language.variable.delete.sure{/lang}')" href="index.php?action=LanguageVariableDelete&amp;languageItem={$languageItem}&amp;languageID={@$languageID}&amp;languageCategoryID={@$languageCategoryID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.acp.language.variable.delete{/lang}" /></a>{/if}
+                                                               {if $__wcf->getSession()->getPermission('admin.language.canDeleteLanguage')}<a onclick="return confirm('{lang}wcf.acp.language.variable.delete.sure{/lang}')" href="index.php?action=LanguageVariableDelete&amp;languageItem={$languageItem}&amp;languageID={@$languageID}&amp;languageCategoryID={@$languageCategoryID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.acp.language.variable.delete{/lang}" /></a>{/if}
                                                                <label for="languageCustomItems-{$languageItem}">{$languageItem}</label>
                                                        </legend>
                                                        
index 0799ee9e76c0074f2271dd4b5e30d9e97617c5d7..9536e1ec983de95e029c0b36773312a5bad4800b 100644 (file)
@@ -3,23 +3,23 @@
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
-               new WCF.Action.Delete('wcf\\data\\language\\LanguageAction', $('.languageRow'));
+               new WCF.Action.Delete('wcf\\data\\language\\LanguageAction', $('.jsLanguageRow'));
                new WCF.Action.SimpleProxy({
                        action: 'setAsDefault',
                        className: 'wcf\\data\\language\\LanguageAction',
-                       elements: $('.languageRow .setAsDefaultButton')
+                       elements: $('.jsLanguageRow .setAsDefaultButton')
                }, {
                        success: function(data, statusText, jqXHR) {
-                               $('.languageRow').each(function(index, row) {
-                                       var $button = $(row).find('.setAsDefaultButton');
+                               $('.jsLanguageRow').each(function(index, row) {
+                                       var $button = $(row).find('.jsSetAsDefaultButton');
                                        
                                        if (WCF.inArray($($button).data('objectID'), data.objectIDs)) {
-                                               $($button).attr('src', '{@RELATIVE_WCF_DIR}icon/defaultDisabledS.png');
-                                               $(row).find('.deleteButton').attr('src', '{@RELATIVE_WCF_DIR}icon/deleteDisabledS.png');
+                                               $($button).attr('src', '{@RELATIVE_WCF_DIR}icon/default1D.svg');
+                                               $(row).find('.jsDeleteButton').attr('src', '{@RELATIVE_WCF_DIR}icon/delete1D.svg');
                                        }
                                        else {
-                                               $($button).attr('src', '{@RELATIVE_WCF_DIR}icon/defaultS.png');
-                                               $(row).find('.deleteButton').attr('src', '{@RELATIVE_WCF_DIR}icon/deleteS.png');
+                                               $($button).attr('src', '{@RELATIVE_WCF_DIR}icon/default1.svg');
+                                               $(row).find('.jsDeleteButton').attr('src', '{@RELATIVE_WCF_DIR}icon/delete1.svg');
                                        }
                                });
                        }
                        
                        <tbody>
                        {foreach from=$objects item=language}
-                               <tr class="languageRow">
+                               <tr class="jsLanguageRow">
                                        <td class="columnIcon">
                                                {if $__wcf->getSession()->getPermission('admin.language.canEditLanguage')}
                                                        <a href="{link controller='LanguageExport' id=$language->languageID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/download1.svg" alt="" title="{lang}wcf.acp.language.export{/lang}" class="balloonTooltip" /></a>
                                                {else}
-                                                       <img src="{@RELATIVE_WCF_DIR}icon/download1D.png" alt="" title="{lang}wcf.acp.language.export{/lang}" />
+                                                       <img src="{@RELATIVE_WCF_DIR}icon/download1D.svg" alt="" title="{lang}wcf.acp.language.export{/lang}" />
                                                {/if}
                                                
                                                {if $__wcf->getSession()->getPermission('admin.language.canEditLanguage')}
                                                        {if !$language->isDefault}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/default1.svg" alt="" title="{lang}wcf.acp.language.setAsDefault{/lang}" class="setAsDefaultButton balloonTooltip" data-objectID="{@$language->languageID}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/default1.svg" alt="" title="{lang}wcf.acp.language.setAsDefault{/lang}" class="jsSetAsDefaultButton wcf-balloonTooltip" data-objectID="{@$language->languageID}" />
                                                        {else}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/default1D.svg" alt="" title="{lang}wcf.acp.language.setAsDefault{/lang}" class="setAsDefaultButton" data-objectID="{@$language->languageID}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/default1D.svg" alt="" title="{lang}wcf.acp.language.setAsDefault{/lang}" class="jsSetAsDefaultButton" data-objectID="{@$language->languageID}" />
                                                        {/if}
                                                {else}
                                                        <img src="{@RELATIVE_WCF_DIR}icon/default1D.svg" alt="" title="{lang}wcf.acp.language.setAsDefault{/lang}" />
@@ -93,9 +93,9 @@
                                                {/if}
                                                {if $__wcf->getSession()->getPermission('admin.language.canDeleteLanguage')}
                                                        {if !$language->isDefault}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="balloonTooltip deleteButton" data-objectID="{@$language->languageID}" data-confirmMessage="{lang}wcf.acp.language.delete.sure{/lang}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="balloonTooltip jsDeleteButton" data-objectID="{@$language->languageID}" data-confirmMessage="{lang}wcf.acp.language.delete.sure{/lang}" />
                                                        {else}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton" data-objectID="{@$language->languageID}" data-confirmMessage="{lang}wcf.acp.language.delete.sure{/lang}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton" data-objectID="{@$language->languageID}" data-confirmMessage="{lang}wcf.acp.language.delete.sure{/lang}" />
                                                        {/if}
                                                {else}
                                                        <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" />
index b6f233112769772bfba00c11734e1d1b143aa9cc..b9c4f76b7862619eda0469d6757b9475f11bbd97 100644 (file)
@@ -3,8 +3,8 @@
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
-               {if $__wcf->getSession()->getPermission('admin.language.canDeleteServer')}new WCF.Action.Delete('wcf\\data\\language\\server\\LanguageServerAction', $('.languageServerRow'));{/if}
-               {if $__wcf->getSession()->getPermission('admin.language.canEditServer')}new WCF.Action.Toggle('wcf\\data\\language\\server\\LanguageServerAction', $('.languageServerRow'));{/if}
+               {if $__wcf->getSession()->getPermission('admin.language.canDeleteServer')}new WCF.Action.Delete('wcf\\data\\language\\server\\LanguageServerAction', $('.jsLanguageServerRow'));{/if}
+               {if $__wcf->getSession()->getPermission('admin.language.canEditServer')}new WCF.Action.Toggle('wcf\\data\\language\\server\\LanguageServerAction', $('.jsLanguageServerRow'));{/if}
        });
        //]]>
 </script>
                        </thead>
                        <tbody>
                                {foreach from=$languageServers item=languageServer}
-                                       <tr class="languageServerRow">
+                                       <tr class="jsLanguageServerRow">
                                                <td class="columnIcon">
                                                        {if $__wcf->getSession()->getPermission('admin.language.canEditServer')}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/{if !$languageServer->disabled}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if !$languageServer->disabled}disable{else}enable{/if}{/lang}" class="toggleButton balloonTooltip" data-object-id="{@$languageServer->languageServerID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
-                                                               <a href="{link controller='LanguageServerEdit' id=$languageServer->languageServerID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="balloonTooltip" /></a>
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/{if !$languageServer->disabled}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if !$languageServer->disabled}disable{else}enable{/if}{/lang}" class="jsToggleButton wcf-balloonTooltip" data-object-id="{@$languageServer->languageServerID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
+                                                               <a href="{link controller='LanguageServerEdit' id=$languageServer->languageServerID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="wcf-balloonTooltip" /></a>
                                                        {else}
                                                                <img src="{@RELATIVE_WCF_DIR}icon/{if !$languageServer->disabled}enabled{else}disabled{/if}1D.svg" alt="" title="{lang}wcf.global.button.{if !$languageServer->disabled}disable{else}enable{/if}{/lang}" />
                                                                <img src="{@RELATIVE_WCF_DIR}icon/edit1D.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" />
                                                        {/if}
                                                        
                                                        {if $__wcf->getSession()->getPermission('admin.language.canDeleteServer')}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="balloonTooltip deleteButton" data-object-id="{@$languageServer->languageServerID}" data-confirm-message="{lang}wcf.acp.languageServer.delete.sure{/lang}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="wcf-balloonTooltip jsDeleteButton" data-object-id="{@$languageServer->languageServerID}" data-confirm-message="{lang}wcf.acp.languageServer.delete.sure{/lang}" />
                                                        {else}
                                                                <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" />
                                                        {/if}