Closed
Bug 701078
Opened 13 years ago
Closed 13 years ago
no images in [Preview Content] when editing articles
Categories
(support.mozilla.org :: Knowledge Base Software, task)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
VERIFIED
FIXED
2011-11-15
People
(Reporter: u375495, Assigned: tgavankar)
References
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243
Steps to reproduce:
when I edit an article
(for example https://support.mozilla.com/en-US/kb/Enabling%20and%20disabling%20cookies/edit#preview)
and than use the button "Preview Content" - I can't see any images in this article
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•13 years ago
|
||
Ah, this is most likely related to the new lazy loading of images.
Updated•13 years ago
|
Keywords: regression
Updated•13 years ago
|
Target Milestone: --- → 2011-11-15
Comment 3•13 years ago
|
||
Can we get a test for this? It affects localizers a lot.
Assignee | ||
Comment 4•13 years ago
|
||
Seems like since the HTML is being previewed without a new page load, the lazyloading binding of images isn't occurring (since the initial function call occurs on document.ready). The fix should just be a matter of adding the lazyload init (in particular, $('img.lazy').lazyload()) to where ever the preview html is inserted.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → tgavankar
Assignee | ||
Comment 5•13 years ago
|
||
Fixed in https://github.com/jsocol/kitsune/commit/11b0c10.
As for regression tests, this seems like it's more suited for selenium.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 7•13 years ago
|
||
I did an empty edit of how to set the home page on -dev https://support-dev.allizom.org/en-US/kb/How+to+set+the+home+page and no images show up in preview. I also added a new image from -dev media gallery and it doesn't show up on preview either.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 8•13 years ago
|
||
Just to clarify so it's here in the bug:
STR:
1. Got to https://support-dev.allizom.org/en-US/kb/How+to+set+the+home+page
2. Click Edit Article
3. Click the preview button
Results: no images show up in the preview
Comment 9•13 years ago
|
||
support-dev is in the middle of some changes related to how it is deployed and doesn't have the latest code at the moment. Stage does have it and seems to be working correctly:
https://support.allizom.org/en-US/kb/How+to+set+the+home+page/edit
This is what will be shipping next Tuesday. Reopen if you see any issues on stage.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 10•13 years ago
|
||
Verified that it works correctly, with images in a KB preview on support.allizom.org
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•