Changed data attributes to comply W3C norms
authorAlexander Ebert <ebert@woltlab.com>
Mon, 14 Nov 2011 16:54:05 +0000 (17:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 14 Nov 2011 16:54:05 +0000 (17:54 +0100)
12 files changed:
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/acp/templates/cacheList.tpl
wcfsetup/install/files/acp/templates/cronjobList.tpl
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/acp/templates/optionTypeBoolean.tpl
wcfsetup/install/files/acp/templates/optionTypeRadiobuttons.tpl
wcfsetup/install/files/acp/templates/packageListDetailed.tpl
wcfsetup/install/files/acp/templates/packageListPlugins.tpl
wcfsetup/install/files/acp/templates/updateServerList.tpl
wcfsetup/install/files/acp/templates/userEmailAddressExport.tpl
wcfsetup/install/files/acp/templates/userGroupList.tpl
wcfsetup/install/files/acp/templates/userList.tpl

index 6875ac28d3c283ebb9eb18f9b0ea861f32887415..3ce8636b0857de4f400626766cc47fb17414c323 100644 (file)
@@ -95,15 +95,15 @@ WCF.ACP.Menu.prototype = {
                
                if (activeMenuItems.length === 0) {
                        // show active menu
-                       this._headerNavigation.find('li[data-menuItem="' + menuItem + '"]').addClass('activeMenuItem');
-                       this._sidebarNavigation.find('div[data-parentMenuItem="' + menuItem + '"]').show();
+                       this._headerNavigation.find('li[data-menu-item="' + menuItem + '"]').addClass('activeMenuItem');
+                       this._sidebarNavigation.find('div[data-parent-menu-item="' + menuItem + '"]').show();
                }
                else {
                        // open menu by active menu items, first element is always a head navigation item
                        menuItem = activeMenuItems.shift();
                        
-                       this._headerNavigation.find('li[data-menuItem="' + menuItem + '"]').addClass('activeMenuItem');
-                       this._sidebarNavigation.find('div[data-parentMenuItem="' + menuItem + '"]').show();
+                       this._headerNavigation.find('li[data-menu-item="' + menuItem + '"]').addClass('activeMenuItem');
+                       this._sidebarNavigation.find('div[data-parent-menu-item="' + menuItem + '"]').show();
                        
                        for (var $i = 0, $size = activeMenuItems.length; $i < $size; $i++) {
                                var $item = activeMenuItems[$i];
index 57a4adc904206df71023faf24f8a44a07f962448..91d6a00272079ef1899d8ee9cea52e5b0c017a98 100644 (file)
@@ -61,7 +61,7 @@
        {counter name=cacheIndex assign=cacheIndex print=false start=0}
        {if $files|count}
                <div class="border boxTitle">
-                       <a class="collapsible" data-isOpen="1" data-collapsibleContainer="cache{@$cacheIndex}"><img src="{@RELATIVE_WCF_DIR}icon/opened2.svg" alt="" title="{lang}wcf.global.button.collapsible{/lang}" class="balloonTooltip" /></a>
+                       <a class="collapsible" data-is-open="1" data-collapsible-container="cache{@$cacheIndex}"><img src="{@RELATIVE_WCF_DIR}icon/opened2.svg" alt="" title="{lang}wcf.global.button.collapsible{/lang}" class="balloonTooltip" /></a>
                        <hgroup>
                                <h1>{$cache} <span class="badge" title="{lang}wcf.acp.cache.data.files.count{/lang}">{#$files|count}</span></h1>
                        </hgroup>
index 628cea433c235544551fedbdf61afabf83206601..985d6c00d27ee37be6446083ffb2a2bca340e180 100644 (file)
                                                <tr class="cronjobRow">
                                                        <td class="columnIcon">
                                                                {if $__wcf->session->getPermission('admin.system.cronjob.canEditCronjob')}
-                                                                       <img src="{@RELATIVE_WCF_DIR}icon/run1.svg" alt="" title="{lang}wcf.acp.cronjob.execute{/lang}" class="executeButton balloonTooltip" data-objectID="{@$cronjob->cronjobID}" />
+                                                                       <img src="{@RELATIVE_WCF_DIR}icon/run1.svg" alt="" title="{lang}wcf.acp.cronjob.execute{/lang}" class="executeButton balloonTooltip" data-object-id="{@$cronjob->cronjobID}" />
                                                                {else}
                                                                        <img src="{@RELATIVE_WCF_DIR}icon/run1D.svg" alt="" title="{lang}wcf.acp.cronjob.execute{/lang}" />
                                                                {/if}
                                                
                                                                {if $cronjob->canBeDisabled()}
-                                                                       <img src="{@RELATIVE_WCF_DIR}icon/{if $cronjob->active}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if $cronjob->active}disable{else}enable{/if}{/lang}" class="toggleButton balloonTooltip" data-objectID="{@$cronjob->cronjobID}" data-disableMessage="{lang}wcf.global.button.disable{/lang}" data-enableMessage="{lang}wcf.global.button.enable{/lang}" />
+                                                                       <img src="{@RELATIVE_WCF_DIR}icon/{if $cronjob->active}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if $cronjob->active}disable{else}enable{/if}{/lang}" class="toggleButton balloonTooltip" data-object-id="{@$cronjob->cronjobID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
                                                                {else}
                                                                        {if $cronjob->active}
                                                                                <img src="{@RELATIVE_WCF_DIR}icon/enabled1D.svg" alt="" title="{lang}wcf.global.button.disable{/lang}" />
@@ -93,7 +93,7 @@
                                                                        <img src="{@RELATIVE_WCF_DIR}icon/edit1D.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" />
                                                                {/if}
                                                                {if $cronjob->isDeletable()}
-                                                                       <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-objectID="{@$cronjob->cronjobID}" data-confirmMessage="{lang}wcf.acp.cronjob.delete.sure{/lang}" />
+                                                                       <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-object-id="{@$cronjob->cronjobID}" data-confirm-message="{lang}wcf.acp.cronjob.delete.sure{/lang}" />
                                                                {else}
                                                                        <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" />
                                                                {/if}
index ba49b791b46e5d191b9d87c8fd0c18854d1901c3..f68f44ce53d9ce0e3ce06bce39a19c92fea2b98f 100644 (file)
                                {if PACKAGE_ID}
                                        <ul>
                                                {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=menuItem}
-                                                       <li data-menuItem="{$menuItem->menuItem}"><a>{lang}{@$menuItem->menuItem}{/lang}</a></li>
+                                                       <li data-menu-item="{$menuItem->menuItem}"><a>{lang}{@$menuItem->menuItem}{/lang}</a></li>
                                                {/foreach}
                                        </ul>
                                {/if}
                                        {* work-around for unknown core-object during WCFSetup *}
                                        {if PACKAGE_ID}
                                                {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=parentMenuItem}
-                                                       <div id="{$parentMenuItem->menuItem}-container" style="display: none;" class="menuContainer" data-parentMenuItem="{$parentMenuItem->menuItem}">
+                                                       <div id="{$parentMenuItem->menuItem}-container" style="display: none;" class="menuContainer" data-parent-menu-item="{$parentMenuItem->menuItem}">
                                                                {foreach from=$__wcf->getACPMenu()->getMenuItems($parentMenuItem->menuItem) item=menuItem}
-                                                                       <h1 class="menuHeader" data-menuItem="{$menuItem->menuItem}">{lang}{@$menuItem->menuItem}{/lang}</h1>
+                                                                       <h1 class="menuHeader" data-menu-item="{$menuItem->menuItem}">{lang}{@$menuItem->menuItem}{/lang}</h1>
                                                                        <div class="sidebarMenuGroup">
                                                                                <ul id="{$menuItem->menuItem}">
                                                                                        {foreach from=$__wcf->getACPMenu()->getMenuItems($menuItem->menuItem) item=menuItemCategory}
                                                                                                {if $__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem)|count > 0}
                                                                                                        {foreach from=$__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem) item=subMenuItem}
-                                                                                                               <li id="{$subMenuItem->menuItem}" data-menuItem="{$subMenuItem->menuItem}"><a href="{$subMenuItem->getLink()}">{lang}{$subMenuItem->menuItem}{/lang}</a></li>
+                                                                                                               <li id="{$subMenuItem->menuItem}" data-menu-item="{$subMenuItem->menuItem}"><a href="{$subMenuItem->getLink()}">{lang}{$subMenuItem->menuItem}{/lang}</a></li>
                                                                                                        {/foreach}
                                                                                                {else}
-                                                                                                       <li id="{$menuItemCategory->menuItem}" data-menuItem="{$menuItemCategory->menuItem}"><a href="{$menuItemCategory->getLink()}">{lang}{$menuItemCategory->menuItem}{/lang}</a></li>
+                                                                                                       <li id="{$menuItemCategory->menuItem}" data-menu-item="{$menuItemCategory->menuItem}"><a href="{$menuItemCategory->getLink()}">{lang}{$menuItemCategory->menuItem}{/lang}</a></li>
                                                                                                {/if}
                                                                                        {/foreach}
                                                                                </ul>
index c06ce09106f56a7f23f8a9145582d7e3b28d046e..52501107311d4799bffe961175e0d2831494c6f4 100644 (file)
@@ -1 +1 @@
-<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="enablesOptions" data-disableOptions="[ {@$disableOptions}]" data-enableOptions="[ {@$enableOptions}]" {/if} />
+<input type="checkbox" id="{$option->optionName}" {if $value} checked="checked"{/if} name="values[{$option->optionName}]" value="1" {if $disableOptions || $enableOptions}class="enablesOptions" data-disable-options="[ {@$disableOptions}]" data-enable-options="[ {@$enableOptions}]" {/if} />
index 594889564d41612ec2c3a206b9c04401ef510865..744a94841e719409ecf04f0bcf4cbe99cf699d99 100644 (file)
@@ -2,7 +2,7 @@
        <dl>
                {foreach from=$selectOptions key=key item=selectOption}
                        <dd>
-                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="enablesOptions" data-disableOptions="[ {@$disableOptions[$key]}]" data-enableOptions="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
+                               <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="enablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
                        </dd>
                {/foreach}
        </dl>
index 5adc96c1c03cfe69402eed8bca696eac80c3183d..73a26ba3465881c41b158d325340b59fbc5a20f6 100644 (file)
@@ -59,7 +59,7 @@
                                                                <img src="{@RELATIVE_WCF_DIR}icon/update1D.svg" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" />
                                                        {/if}
                                                        {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package->package != 'com.woltlab.wcf' && $package->packageID != PACKAGE_ID}
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" data-objectID="{@$package->packageID}" class="uninstallButton balloonTooltip" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" data-object-id="{@$package->packageID}" class="uninstallButton balloonTooltip" />
                                                        {else}
                                                                <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" />
                                                        {/if}
index 74e15942a2c839a25fbb42e373f7b9d81494675a..f281cfe29b908d444db820cfe0c599b50028d7db 100644 (file)
@@ -12,9 +12,9 @@
                                <ul class="smallButtonBar">
                                        <li><a href="index.php/PackageView/{@$packageID}{@SID_ARG_1ST}" title="{$package->getName()}" class="balloonTooltip"><img src="{@RELATIVE_WCF_DIR}icon/info1.svg" alt="" /> <span>Update</span></a></li>
                                        <li><a href="index.php?form=PackageStartInstall&amp;action=update&amp;packageID={@$packageID}{@SID_ARG_2ND}" title="{lang}wcf.acp.package.view.button.update{/lang}" class="balloonTooltip"><img src="{@RELATIVE_WCF_DIR}icon/update1.svg" alt="" /> <span>Update</span></a></li>
-                                       <li title="{lang}wcf.acp.package.view.button.uninstall{/lang}" class="balloonTooltip separator"><img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" class="uninstallButton" data-objectID="{@$package->packageID}" /> <span>Delete</span></li>
+                                       <li title="{lang}wcf.acp.package.view.button.uninstall{/lang}" class="balloonTooltip separator"><img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" class="uninstallButton" data-object-id="{@$package->packageID}" /> <span>Delete</span></li>
                                </ul>
                        </nav>
                </footer>
        </li>
-{/foreach}
\ No newline at end of file
+{/foreach}
index 29172c1d05a3373d20f6458787c117d17f141b59..5e5b0285eb716e45506f0391f5953093a5fb0887 100644 (file)
@@ -53,9 +53,9 @@
                                        {foreach from=$objects item=updateServer}
                                                <tr class="updateServerRow">
                                                        <td class="columnIcon">
-                                                               <img src="{@RELATIVE_WCF_DIR}icon/{if !$updateServer->disabled}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if !$updateServer->disabled}disable{else}enable{/if}{/lang}" class="toggleButton balloonTooltip" data-objectID="{@$updateServer->packageUpdateServerID}" data-disableMessage="{lang}wcf.global.button.disable{/lang}" data-enableMessage="{lang}wcf.global.button.enable{/lang}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/{if !$updateServer->disabled}enabled{else}disabled{/if}1.svg" alt="" title="{lang}wcf.global.button.{if !$updateServer->disabled}disable{else}enable{/if}{/lang}" class="toggleButton balloonTooltip" data-object-id="{@$updateServer->packageUpdateServerID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}" />
                                                                <a href="{link controller='UpdateServerEdit' id=$updateServer->packageUpdateServerID}{/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/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-objectID="{@$updateServer->packageUpdateServerID}" data-confirmMessage="{lang}wcf.acp.updateServer.delete.sure{/lang}" />
+                                                               <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-object-id="{@$updateServer->packageUpdateServerID}" data-confirm-message="{lang}wcf.acp.updateServer.delete.sure{/lang}" />
                                                        
                                                                {if $additionalButtons[$updateServer->packageUpdateServerID]|isset}{@$additionalButtons[$updateServer->packageUpdateServerID]}{/if}
                                                        </td>
index b136a58d6076b44e1eea3b10c7e12bbed17b24a8..4ea553798209db9a5bf7e92242bef2e65ac0a5b0 100644 (file)
@@ -38,8 +38,8 @@
                                                
                                                <dl>
                                                        <dd><!-- ToDo: Definition List -->
-                                                               <li><label><input type="radio" name="fileType" value="csv" {if $fileType == 'csv'}checked="checked" {/if}class="enablesOptions" data-disableOptions="[ ]" data-enableOptions="[ 'separatorDiv', 'textSeparatorDiv' ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.csv{/lang}</label></li>
-                                                               <li><label><input type="radio" class="enablesOptions" name="fileType" value="xml" {if $fileType == 'xml'}checked="checked" {/if}data-disableOptions="[ 'separatorDiv', 'textSeparatorDiv' ]" data-enableOptions="[ ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.xml{/lang}</label></li>
+                                                               <li><label><input type="radio" name="fileType" value="csv" {if $fileType == 'csv'}checked="checked" {/if}class="enablesOptions" data-disable-options="[ ]" data-enable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.csv{/lang}</label></li>
+                                                               <li><label><input type="radio" class="enablesOptions" name="fileType" value="xml" {if $fileType == 'xml'}checked="checked" {/if}data-disable-options="[ 'separatorDiv', 'textSeparatorDiv' ]" data-enable-options="[ ]" /> {lang}wcf.acp.user.exportEmailAddress.fileType.xml{/lang}</label></li>
                                                        </dd>
                                                </dl>
                                        </fieldset>
index ab9ad21b028acd7211e15b9c1f81460e5bd7edec..3702a56c802c032a1dedde9fe0fc8908ae6fdaac 100644 (file)
@@ -45,7 +45,7 @@
                                                                        <img src="{@RELATIVE_WCF_DIR}icon/edit1D.svg" alt="" title="{lang}wcf.acp.group.edit{/lang}" />
                                                                {/if}
                                                                {if $group->isDeletable()}
-                                                                       <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-objectID="{@$group->groupID}" data-confirmMessage="{lang}wcf.acp.group.delete.sure{/lang}" />
+                                                                       <img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-object-id="{@$group->groupID}" data-confirm-message="{lang}wcf.acp.group.delete.sure{/lang}" />
                                                                {else}
                                                                        <img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" />
                                                                {/if}
index 2d4fc4ea9fb1ee3e57ad40f371d409f7713c3809..74f2b9cf7ec3f8fd1409e879a466de5363d559ee 100644 (file)
@@ -61,7 +61,7 @@
                                {content}
                                        {foreach from=$users item=user}
                                                <tr id="userRow{@$user->userID}">
-                                                       <td class="columnMark"><input type="checkbox" class="clipboardItem" data-objectID="{@$user->userID}" /></td>
+                                                       <td class="columnMark"><input type="checkbox" class="clipboardItem" data-object-id="{@$user->userID}" /></td>
                                                        <td class="columnIcon">
                                                                {if $user->editable}
                                                                        <a href="{link controller='UserEdit' id=$user->userID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.acp.user.edit{/lang}" class="balloonTooltip" /></a>