Merge branch 'userdesign' of ssh://zach@dev.controlyourself.ca/mnt/www/design into userdesign

* 'userdesign' of ssh://zach@dev.controlyourself.ca/mnt/www/design:
  Converts user entry in the form of '#1B2' into '#11BB22' for user
  Updated swatch numbering

Conflicts:
	actions/designsettings.php
This commit is contained in:
Zach Copley 2009-06-15 20:25:36 -07:00
commit 9dce5d00f1
1 changed files with 9 additions and 7 deletions

View 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:
case 2:
$('#content').css({'background-color':C});
break;
case 2:
case 3:
$('#aside_primary').css({'background-color':C});
break;
case 3:
$('body').css({'color':C});
break;
case 4:
$('html body').css({'color':C});
break;
case 5:
$('a').css({'color':C});
break;
}
@ -59,7 +59,9 @@ $(document).ready(function() {
swatches
.each(SynchColors)
.blur(function() {
$(this).val($(this).val().toUpperCase());
tv = $(this).val();
$(this).val(tv.toUpperCase());
(tv.length == 4) ? ((tv[0] == '#') ? $(this).val('#'+tv[1]+tv[1]+tv[2]+tv[2]+tv[3]+tv[3]) : '') : '';
})
.focus(function() {
$('#color-picker').show();