jquery.adaptive-backgrounds.js icon indicating copy to clipboard operation
jquery.adaptive-backgrounds.js copied to clipboard

Respect 'opts.parent' when using 'data-ab-css-background'

Open AlfredJKwack opened this issue 7 years ago • 0 comments

The current implementation will ignore opts.parent option when using the data-ab-css-background feature. This behaviour is as per design and explicitly stated as such in the documentation.

The proposed enhancement would:

  1. respect opts.parent if it has been set and the parent exists.
  2. set the background colour of the element with a CSS background image only when a) no 'parent' is set or b) if no parent was found.

The implementation would affect the code around lines #L117-L130

Anyone want to chime in on the merits and rulesets?

AlfredJKwack avatar Aug 24 '17 22:08 AlfredJKwack