zulip/static
Hashir Sarwar 9a6d83e731 lightbox: Use `$preview_src` as key for `asset_map`.
In case of video embeds, the previous logic used
`data-src-fullsize` or `src` as a key to look
for the metadata of video in `lightbox.open()`,
but while parsing, the key used while storing
the metadata was the video ID.

This doesn't make any sense because video's data
could never be accessed from `asset_map` and we
always needed to lookup the DOM for this.

This commit fixes this by using $img.attr('src')
as a key for `asset_map` for both, images and
videos. Since `src` is the link of preview image
in case of video embeds, it will always uniquely
determine the video ID and we won't loose
anything with the change in how videos handle
things.

Part of #14152.
2020-04-05 13:13:02 -07:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html 5xx.html: Build with webpack. 2019-10-28 15:53:15 -07:00
images portico: Update google play and app store badges. 2020-03-06 12:12:02 -08:00
js lightbox: Use `$preview_src` as key for `asset_map`. 2020-04-05 13:13:02 -07:00
shared typeahead: Convert to ES6 module. 2020-02-19 14:36:42 -08:00
styles stats: Show info message in /stats page of newly created realms. 2020-04-03 11:59:18 -07:00
templates org settings: Minor changes to link icons and documentation. 2020-04-03 11:41:18 -07:00
third text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
.eslintrc.json lint: Delegate console.log check to ESLint. 2020-02-07 14:09:47 -08:00
.gitignore emoji: Resolve emoji sprite sheets and stylesheets through Webpack. 2020-02-25 14:43:46 -08:00
favicon.ico