mirror of https://github.com/zulip/zulip.git
11cbe2bf6a
Images on the new thumbnailing system generate an error when "Pan & Zoom" is enabled: Browser Error: Lightbox for unknown message undefined 39648: http://localhost:9991/webpack/app.js | Object.blueslip_error [as error] 50743: http://localhost:9991/webpack/app.js | Object../static/js/lightbox.js.exports.open 50897: http://localhost:9991/webpack/app.js | HTMLDivElement. 39474: http://localhost:9991/webpack/app.js | HTMLDivElement.blueslip_wrapper 16299: http://localhost:9991/webpack/app.js | HTMLDivElement.dispatch 16107: http://localhost:9991/webpack/app.js | HTMLDivElement.elemData.handle To fix this, instead of using the `src` attribute as the key for `asset_map`, which can be either the original or thumbnailed version depending on the situation, always use the original version. Also, create `frontend_tests/node_tests/lightbox.js` to test this functionality. Fix #9955. |
||
---|---|---|
.. | ||
casper_lib | ||
casper_tests | ||
node_tests | ||
zjsunit | ||
.eslintrc.json | ||
run-casper |