From 235a7450800e8f02bca5e527d86b1307f4b32cb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 28 Aug 2011 13:26:13 +0200 Subject: [PATCH] Fixing the toggling of the icon --- wcfsetup/install/files/js/WCF.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.20.1