Added background-attachment:fixed for userdesigns

This commit is contained in:
Sarven Capadisli 2009-06-26 15:20:22 +00:00
parent 9fc8ad4531
commit 60b47d8797
2 changed files with 2 additions and 1 deletions

View 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);

View 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() {