Added background-attachment:fixed for userdesigns
This commit is contained in:
parent
9fc8ad4531
commit
60b47d8797
|
@ -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);
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user