diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-26 15:20:22 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-06-26 15:20:22 +0000 |
commit | 60b47d879781e28c0f08978bba43d5b9ad22b32a (patch) | |
tree | f07a06b03ca501f4ae43c452e7641fc8b9e01304 | |
parent | 9fc8ad4531595aa4530876630a5a3c7a88294a8c (diff) |
Added background-attachment:fixed for userdesigns
-rw-r--r-- | classes/Design.php | 2 | ||||
-rw-r--r-- | js/userdesign.go.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/classes/Design.php b/classes/Design.php index da4b670be..0927fcda7 100644 --- a/classes/Design.php +++ b/classes/Design.php @@ -85,7 +85,7 @@ class Design extends Memcached_DataObject $css .= 'body { background-image:url(' . Design::url($this->backgroundimage) . - '); ' . $repeat . ' }' . "\n"; + '); ' . $repeat . ' background-attachment:fixed; }' . "\n"; } $out->element('style', array('type' => 'text/css'), $css); diff --git a/js/userdesign.go.js b/js/userdesign.go.js index 3f4c220ae..dda86294e 100644 --- a/js/userdesign.go.js +++ b/js/userdesign.go.js @@ -90,6 +90,7 @@ $(document).ready(function() { }); $('#design_background-image_on').focus(function() { $('body').css({'background-image':'url('+$('#design_background-image_onoff img')[0].src+')'}); + $('body').css({'background-attachment': 'fixed'}); }); $('#design_background-image_repeat').click(function() { |