summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-26 15:20:22 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-26 15:20:22 +0000
commit60b47d879781e28c0f08978bba43d5b9ad22b32a (patch)
treef07a06b03ca501f4ae43c452e7641fc8b9e01304
parent9fc8ad4531595aa4530876630a5a3c7a88294a8c (diff)
Added background-attachment:fixed for userdesigns
-rw-r--r--classes/Design.php2
-rw-r--r--js/userdesign.go.js1
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() {