Correct image placeholders in FFOS and Firefox

Former-commit-id: 31cd70e19d8b80fcbb1f7fc43af02d3bcb589788 [formerly 97dfdaae65646f82475b3d29f6373e56f5837510]
Former-commit-id: 7ffc40aae48f8e6046975938273729cc686cc9e1
This commit is contained in:
Jaifroid 2017-07-30 19:19:40 +01:00
parent 943a26e866
commit e36dca32a5
2 changed files with 1 additions and 1 deletions

BIN
www/img/lightBlue.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

View File

@ -837,7 +837,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
if (!params['imageDisplay']) {
//Ensure 36px clickable image height so user can request images by clicking [kiwix-js #173]
htmlArticle = htmlArticle.replace(/(<img\s+[^>]*\b)height(\s*=\s*)/ig,
'$1height="36" alt="Placeholder" style="color: lightblue; background-color: lightblue;" ' +
'$1height="36" src="../img/lightBlue.png" style="color: lightblue; background-color: lightblue;" ' +
'data-kiwixheight$2');
}