]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed array index
authorSarven Capadisli <csarven@controlyourself.ca>
Tue, 19 May 2009 17:31:43 +0000 (17:31 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Tue, 19 May 2009 17:31:43 +0000 (17:31 +0000)
js/farbtastic/farbtastic.go.js

index 77e21351391fbdb27a83a243b383eee62609e205..e298c1dab032d8fd4fa6a7f133c75f79f6765dc0 100644 (file)
@@ -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;
             }