-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes custom image header templates #3378
Fixes custom image header templates #3378
Conversation
var url = this._getCoverURL(); | ||
|
||
if (!this._isValidURL(url)) { | ||
$imageNotFound.fadeIn(250); | ||
$img.hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were not hiding the <img>
tag before, and it was displaying a broken image (bonus)
Frontend tests were OK 👍 (details) |
Hey @xavijam, when you have a second, I'd love to have your thoughts on this PR. Thanks! |
|
||
var $cover = this.$el.find(".cover"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...this.$('.cover')...
Shouldn't we change the same function in cartodb.js infowindow file? |
Frontend tests were OK 👍 (details) |
@xavijam I fixed the selectors. As per your other comment, I'd say that should also be changed in cartodb.js, but since nobody has complaint about it, I think we can wait. |
Open a ticket please :) |
@xavijam: There you have it. Thanks! |
…mplates Fixes custom image header templates
Fixes #2235 and hides the
<img>
tag when an infowindow doesn't have a valid cover URL (different issue).cc/ @cshirky