From: Sarven Capadisli Date: Tue, 19 May 2009 17:31:43 +0000 (+0000) Subject: Fixed array index X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09e95cc33fb2228066d524e399bcc549e85eb565;p=quix0rs-gnu-social.git Fixed array index --- diff --git a/js/farbtastic/farbtastic.go.js b/js/farbtastic/farbtastic.go.js index 77e2135139..e298c1dab0 100644 --- a/js/farbtastic/farbtastic.go.js +++ b/js/farbtastic/farbtastic.go.js @@ -7,19 +7,19 @@ $(document).ready(function() { UpdateSwatch(S); switch (parseInt(f.linked.id.slice(-1))) { - case 1: default: + case 0: default: $('body').css({'background-color':C}); break; - case 2: + case 1: $('#content').css({'background-color':C}); break; - case 3: + case 2: $('#aside_primary').css({'background-color':C}); break; - case 4: + case 3: $('body').css({'color':C}); break; - case 5: + case 4: $('a').css({'color':C}); break; }