User tests: Successful: Unsuccessful:
Fix for Issue #3311
The img
is changed to $img
which should fix the issue.
Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33484
Title |
|
Title |
|
@Bakual The main cause is the image url path (e.g. images/sampledata/parks/banner_cradle.jpg) is relative. This causes images url to be incorrect for inner paths (e.g. http://myhostjoomla/administration/..) where the image url appends next (e.g. http://myhostjoomla/administration/images/sampledata/parks/banner_cradle.jpg where it should be http://myhostjoomla/images/sampledata/parks/banner_cradle.jpg) which is incorrect.
I found the issue in article versions -> preview image where it tries to fetch an image from wrong url. Will you be able to provide the steps to recreate the above mentioned one (JS error) with steps?
Nah, URL is correct. The issue was that $img.src = 'new_value'
doesn't target what you think it does. If you want to change the src attribute with jQuery, you need to use $img.attr('src', 'new_value')
PR is updated.
May be I encounter another issue. Will be able to try the following scenario and clarify.
Edit article with image and save -> go to versions -> select one and press the preview -> in the new window the image link is wrong and not shown
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-03-27 10:12:09 |
@AshanFernando The preview isn't updated when the image is changed. Do you have a clue why?