From 60b47d879781e28c0f08978bba43d5b9ad22b32a Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 26 Jun 2009 15:20:22 +0000 Subject: [PATCH] Added background-attachment:fixed for userdesigns --- classes/Design.php | 2 +- js/userdesign.go.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.39.5