]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added background-attachment:fixed for userdesigns
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 26 Jun 2009 15:20:22 +0000 (15:20 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 26 Jun 2009 15:20:22 +0000 (15:20 +0000)
classes/Design.php
js/userdesign.go.js

index da4b670be06c41440711f1df486e7521be0f44fd..0927fcda70e729ef70e6fa8c8132d38882a8dba2 100644 (file)
@@ -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);
index 3f4c220ae6ba60b88912d4ecd09e9bd8fec3d6b1..dda86294ed99abda715578176d12adf860c3a397 100644 (file)
@@ -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() {