}
}
- name = name || elAttr(tab, 'data-name');
+ name = name || elData(tab, 'name');
// unmark active tab
- var oldTab = elBySel('#' + this._container.id + ' > nav > ul > li.active');
+ var oldTab = this.getActiveTab();
var oldContent = null;
if (oldTab) {
+ if (elData(oldTab, 'name') === name) {
+ // same tab
+ return;
+ }
+
oldTab.classList.remove('active');
- oldContent = this._containers.get(elAttr(oldTab, 'data-name'));
+ oldContent = this._containers.get(elData(oldTab, 'name'));
oldContent.classList.remove('active');
oldContent.classList.add('hidden');
<item name="wcf.acp.menu.link.group.assignment"><![CDATA[Automatic Assignments]]></item>
<item name="wcf.acp.menu.link.notice"><![CDATA[Notices]]></item>
<item name="wcf.acp.menu.link.notice.add"><![CDATA[Add Notice]]></item>
- <item name="wcf.acp.menu.link.notice.list"><![CDATA[List Notices]]></item>
+ <item name="wcf.acp.menu.link.notice.list"><![CDATA[Notices]]></item>
- <item name="wcf.acp.menu.link.ad"><![CDATA[Ad]]></item>
+ <item name="wcf.acp.menu.link.ad"><![CDATA[Ads]]></item>
<item name="wcf.acp.menu.link.ad.add"><![CDATA[Add Ad]]></item>
- <item name="wcf.acp.menu.link.ad.list"><![CDATA[List Ads]]></item>
+ <item name="wcf.acp.menu.link.ad.list"><![CDATA[Ads]]></item>
<item name="wcf.acp.menu.link.captcha"><![CDATA[Captchas]]></item>
<item name="wcf.acp.menu.link.captcha.question.add"><![CDATA[Add Question]]></item>
- <item name="wcf.acp.menu.link.captcha.question.list"><![CDATA[List Questions]]></item>
+ <item name="wcf.acp.menu.link.captcha.question.list"><![CDATA[Questions]]></item>
<item name="wcf.acp.menu.link.log.authentication.failure"><![CDATA[Failed Login Attempts]]></item>
<item name="wcf.acp.menu.link.paidSubscription"><![CDATA[Paid Subscriptions]]></item>
<item name="wcf.acp.menu.link.paidSubscription.list"><![CDATA[List Paid Subscriptions]]></item>
<item name="wcf.clipboard.item.com.woltlab.wcf.user.sendNewPassword"><![CDATA[Send New Password ({#$count})]]></item>
<item name="wcf.clipboard.item.com.woltlab.wcf.user.sendNewPassword.confirmMessage"><![CDATA[Do you really want to send a new password to {#$count} user{if $count != 1}s{/if}?]]></item>
- <item name="wcf.clipboard.label.com.woltlab.wcf.media.marked"><![CDATA[{#$count} File{if $count != 1}s{/if} marked]]></item>
- <item name="wcf.clipboard.label.com.woltlab.wcf.tag.marked"><![CDATA[{#$count} Tag{if $count != 1}s{/if} marked]]></item>
- <item name="wcf.clipboard.label.com.woltlab.wcf.user.marked"><![CDATA[{#$count} User{if $count != 1}s{/if} marked]]></item>
++ <item name="wcf.clipboard.label.com.woltlab.wcf.media.marked"><![CDATA[{if $count == 1}One File{else}{#$count} Files{/if} marked]]></item>
+ <item name="wcf.clipboard.label.com.woltlab.wcf.tag.marked"><![CDATA[{if $count == 1}One Tag{else}{#$count} Tags{/if} marked]]></item>
+ <item name="wcf.clipboard.label.com.woltlab.wcf.user.marked"><![CDATA[{if $count == 1}One User{else}{#$count} Users{/if} marked]]></item>
</category>
<category name="wcf.comment">