From: Sarven Capadisli Date: Fri, 26 Jun 2009 15:20:22 +0000 (+0000) Subject: Added background-attachment:fixed for userdesigns X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=60b47d879781e28c0f08978bba43d5b9ad22b32a;p=quix0rs-gnu-social.git Added background-attachment:fixed for userdesigns --- diff --git a/classes/Design.php b/classes/Design.php index da4b670be0..0927fcda70 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 3f4c220ae6..dda86294ed 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() {