From 7382b4b519ebc541635b08144731e3e4b7df2d18 Mon Sep 17 00:00:00 2001 From: anuprajg Date: Sun, 25 Jun 2017 18:27:08 +0200 Subject: [PATCH] Update jquery.adaptive-backgrounds.js --- js/jquery.adaptive-backgrounds.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/jquery.adaptive-backgrounds.js b/js/jquery.adaptive-backgrounds.js index 1dbf714..8716b43 100755 --- a/js/jquery.adaptive-backgrounds.js +++ b/js/jquery.adaptive-backgrounds.js @@ -107,8 +107,7 @@ else { $parent = $this.parent(); } - $parent = $parent.parent.parent.parent() - if($.isNumeric(opts.transparent) && opts.transparent != null && opts.transparent >= 0.01 && opts.transparent <= 0.99) { + if($.isNumeric(opts.transparent) && opts.transparent != null && opts.transparent >= 0.01 && opts.transparent <= 0.99) { var dominantColor = data.color; var rgbToRgba = dominantColor.replace("rgb", "rgba"); var transparentColor = rgbToRgba.replace(")", ", " + opts.transparent + ")");