If there is no specific title for the enable/disabled button is given, the neutral/general title is used.
"disableMessage"/"enableMessage" is replaced by "disableTitle"/"enableTitle" since that is - in my opinion - more accurate because the title is simply changed and you don't see any pop-up message appearing after changing the status.
'wcf.global.decimalPoint': '{capture assign=decimalPoint}{lang}wcf.global.decimalPoint{/lang}{/capture}{$decimalPoint|encodeJS}',
'wcf.global.page.next': '{capture assign=pageNext}{lang}wcf.global.page.next{/lang}{/capture}{@$pageNext|encodeJS}',
'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}',
- 'wcf.global.button.collapsible': '{lang}wcf.global.button.collapsible{/lang}'
+ 'wcf.global.button.collapsible': '{lang}wcf.global.button.collapsible{/lang}',
+ 'wcf.global.button.disable': '{lang}wcf.global.button.disable{/lang}',
+ 'wcf.global.button.enable': '{lang}wcf.global.button.enable{/lang}'
{event name='javascriptLanguageImport'}
});
'wcf.global.decimalPoint': '{capture assign=decimalPoint}{lang}wcf.global.decimalPoint{/lang}{/capture}{$decimalPoint|encodeJS}',
'wcf.global.page.next': '{capture assign=pageNext}{lang}wcf.global.page.next{/lang}{/capture}{@$pageNext|encodeJS}',
'wcf.global.page.previous': '{capture assign=pagePrevious}{lang}wcf.global.page.previous{/lang}{/capture}{@$pagePrevious|encodeJS}',
- 'wcf.global.button.collapsible': '{lang}wcf.global.button.collapsible{/lang}'
+ 'wcf.global.button.collapsible': '{lang}wcf.global.button.collapsible{/lang}',
+ 'wcf.global.button.disable': '{lang}wcf.global.button.disable{/lang}',
+ 'wcf.global.button.enable': '{lang}wcf.global.button.enable{/lang}'
});
new WCF.Date.Time();
new WCF.Effect.SmoothScroll();
// toogle icon title
$toggleButton.attr('title', function() {
if (this.src.match(/enabled1\.svg$/)) {
- return $(this).data('disableMessage');
+ if ($(this).data('disableTitle')) {
+ return $(this).data('disableTitle')
+ }
+
+ return WCF.Language.get('wcf.global.button.disable');
}
else {
- return $(this).data('enableMessage');
+ if ($(this).data('enableTitle')) {
+ return $(this).data('enableTitle')
+ }
+
+ return WCF.Language.get('wcf.global.button.enable');
}
});
}