X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fsrc%2Fjquery%2Fjquery.farbtastic.js;h=f70913f90faaec2c9c07d2c1f1753eefd8fd4a97;hb=d92845c2295d982c80312880c3fae788450676ea;hp=18810857c10c286056b49c47b7bc0d06de84a4ca;hpb=1a8daf2c07e31337d83ee39b42873373023c8d40;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery/jquery.farbtastic.js b/resources/src/jquery/jquery.farbtastic.js index 18810857c1..f70913f90f 100644 --- a/resources/src/jquery/jquery.farbtastic.js +++ b/resources/src/jquery/jquery.farbtastic.js @@ -51,11 +51,11 @@ jQuery._farbtastic = function (container, callback) { $('*', e).each(function () { if (this.currentStyle.backgroundImage != 'none') { var image = this.currentStyle.backgroundImage; - image = this.currentStyle.backgroundImage.substring(5, image.length - 2); - $(this).css({ - 'backgroundImage': 'none', - 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')" - }); + image = this.currentStyle.backgroundImage.slice(5, image.length - 2); + $(this).css( { + backgroundImage: 'none', + filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')" + } ); } }); }