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)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2011-11-15

People

(Reporter: u375495, Assigned: tgavankar)

References

Details

(Keywords: regression)

Attachments

(2 files)

Attached image Preview Content
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
Attached image PreviewContent01.png
Status: UNCONFIRMED → NEW
Ever confirmed: true
Ah, this is most likely related to the new lazy loading of images.
Target Milestone: --- → 2011-11-15
Can we get a test for this? It affects localizers a lot.
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: nobody → tgavankar
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
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 → ---
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
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 ago13 years ago
Resolution: --- → FIXED
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.

Attachment

General

Creator:
Created:
Updated:
Size: