]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Updated swatch numbering
authorSarven Capadisli <csarven@controlyourself.ca>
Mon, 15 Jun 2009 21:02:12 +0000 (21:02 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Mon, 15 Jun 2009 21:02:12 +0000 (21:02 +0000)
actions/designsettings.php
js/farbtastic/farbtastic.go.js

index dba983fdf737e9130d842eb08792918f1df16488..46a5843f8752508d818da419588f71e95ff88780 100644 (file)
@@ -106,10 +106,10 @@ class DesignsettingsAction extends AccountSettingsAction
         }
 
         $this->elementStart('li');
-        $this->element('label', array('for' => 'swatch-0'), _('Background'));
+        $this->element('label', array('for' => 'swatch-1'), _('Background'));
         $this->element('input', array('name' => 'design_background',
                                       'type' => 'text',
-                                      'id' => 'swatch-0',
+                                      'id' => 'swatch-1',
                                       'class' => 'swatch',
                                       'maxlength' => '7',
                                       'size' => '7',
@@ -117,10 +117,10 @@ class DesignsettingsAction extends AccountSettingsAction
         $this->elementEnd('li');
         
         $this->elementStart('li');
-        $this->element('label', array('for' => 'swatch-1'), _('Content'));
+        $this->element('label', array('for' => 'swatch-2'), _('Content'));
         $this->element('input', array('name' => 'design_content',
                                       'type' => 'text',
-                                      'id' => 'swatch-1',
+                                      'id' => 'swatch-2',
                                       'class' => 'swatch',
                                       'maxlength' => '7',
                                       'size' => '7',
@@ -128,10 +128,10 @@ class DesignsettingsAction extends AccountSettingsAction
         $this->elementEnd('li');
     
         $this->elementStart('li');                          
-        $this->element('label', array('for' => 'swatch-2'), _('Sidebar'));
+        $this->element('label', array('for' => 'swatch-3'), _('Sidebar'));
         $this->element('input', array('name' => 'design_sidebar',
                                     'type' => 'text',
-                                    'id' => 'swatch-2',
+                                    'id' => 'swatch-3',
                                     'class' => 'swatch',
                                     'maxlength' => '7',
                                     'size' => '7',
@@ -139,10 +139,10 @@ class DesignsettingsAction extends AccountSettingsAction
         $this->elementEnd('li');
 
         $this->elementStart('li');                          
-        $this->element('label', array('for' => 'swatch-3'), _('Text'));
+        $this->element('label', array('for' => 'swatch-4'), _('Text'));
         $this->element('input', array('name' => 'design_text',
                                     'type' => 'text',
-                                    'id' => 'swatch-3',
+                                    'id' => 'swatch-4',
                                     'class' => 'swatch',
                                     'maxlength' => '7',
                                     'size' => '7',
@@ -150,15 +150,14 @@ class DesignsettingsAction extends AccountSettingsAction
         $this->elementEnd('li');
 
         $this->elementStart('li');
-        $this->element('label', array('for' => 'swatch-4'), _('Links'));
+        $this->element('label', array('for' => 'swatch-5'), _('Links'));
         $this->element('input', array('name' => 'design_links',
                                      'type' => 'text',
-                                     'id' => 'swatch-4',
+                                     'id' => 'swatch-5',
                                      'class' => 'swatch',
                                      'maxlength' => '7',
                                      'size' => '7',
                                      'value' => $design->linkcolor));
-
        $this->elementEnd('li');
 
        $this->elementEnd('ul');
index 0149eca7d9f30f2a82d9500238353476368e916c..4e0493b40a857c8aa1c85d36c48fba362608c7b6 100644 (file)
@@ -10,19 +10,19 @@ $(document).ready(function() {
     function UpdateColors(S) {
         C = $(S).val();
         switch (parseInt(S.id.slice(-1))) {
-            case 0: default:
+            case 1: default:
                 $('body').css({'background-color':C});
                 break;
-            case 1:
-                $('#content').css({'background-color':C});
-                break;
             case 2:
-                $('#aside_primary').css({'background-color':C});
+                $('#content').css({'background-color':C});
                 break;
             case 3:
-                $('body').css({'color':C});
+                $('#aside_primary').css({'background-color':C});
                 break;
             case 4:
+                $('html body').css({'color':C});
+                break;
+            case 5:
                 $('a').css({'color':C});
                 break;
         }