From: Tim Düsterhus Date: Sun, 28 Aug 2011 11:26:13 +0000 (+0200) Subject: Fixing the toggling of the icon X-Git-Tag: 2.0.0_Beta_1~1808^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=235a7450800e8f02bca5e527d86b1307f4b32cb8;p=GitHub%2FWoltLab%2FWCF.git Fixing the toggling of the icon --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 056da0ca4c..53af932bd1 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -812,16 +812,16 @@ WCF.Action.Toggle.prototype = { // toggle icon source $toggleButton.attr('src', function() { - if (this.src.match(/enabled(S|M|L)\.png$/)) { - return this.src.replace(/enabled(S|M|L)\.png$/, 'disabled$1\.png'); + if (this.src.match(/disabled1\.svg$/)) { + return this.src.replace(/disabled1\.svg$/, 'enabled1.svg'); } else { - return this.src.replace(/disabled(S|M|L)\.png$/, 'enabled$1\.png'); + return this.src.replace(/enabled1\.svg$/, 'disabled1.svg'); } }); // toogle icon title $toggleButton.attr('title', function() { - if (this.src.match(/enabled(S|M|L)\.png$/)) { + if (this.src.match(/enabled1\.svg$/)) { return $(this).data('disableMessage'); } else {