8000 Use sinle quotes for background images by bjorvack · Pull Request #3067 · forkcms/forkcms · GitHub
[go: up one dir, main page]

Skip to content

Use sinle quotes for background images#3067

Merged
carakas merged 2 commits intoforkcms:masterfrom
bjorvack:bugfix-background-images-user-templates
May 12, 2020
Merged

Use sinle quotes for background images#3067
carakas merged 2 commits intoforkcms:masterfrom
bjorvack:bugfix-background-images-user-templates

Conversation

@bjorvack
Copy link
Contributor

Type

  • Non critical bugfix

Pull request description

When using user templates the generated background image uses double quotes. Because of this the background url doesn't work. When using single quotes this problem is avoided

@bjorvack bjorvack requested a review from a team as a code owner April 14, 2020 12:24

$element.attr('data-src', $img.attr('src'))
$element.css('background-image', 'url("' + $img.attr('src') + '")')
$element.css('background-imag\'' + $img.attr('src') + '\')')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the e is missing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carakas fixed the typo 369a697

@carakas carakas added this to the 5.8.2 milestone May 12, 2020
@carakas carakas merged commit a0a4a31 into forkcms:master May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0