]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Removed unnecessary assignment to variable for background image on
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 26 Jun 2009 05:38:43 +0000 (05:38 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 26 Jun 2009 05:38:43 +0000 (05:38 +0000)
js/userdesign.go.js

index b54b492cce34ed52e6c7efed3dc29d027bd899ed..833b19adcb50ebd3c4715f0a69f5bb584124afed 100644 (file)
@@ -89,11 +89,10 @@ $(document).ready(function() {
         $('body').css({'background-image':'none'});
     });
     $('#design_background-image_on').focus(function() {
-        var bis = $('#design_background-image_onoff img')[0].src;
-        $('body').css({'background-image':'url('+bis+')'});
+        $('body').css({'background-image':'url('+$('#design_background-image_onoff img')[0].src+')'});
     });
 
     $('#design_background-image_repeat').click(function() {
         ($(this)[0].checked) ? $('body').css({'background-repeat':'repeat'}) : $('body').css({'background-repeat':'no-repeat'});
     });
-});
\ No newline at end of file
+});