roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas BONAMY (JIRA)" <>
Subject [jira] Created: (ROL-1848) Bad url when add an image to a weblog
Date Mon, 23 Nov 2009 14:07:39 GMT
Bad url when add an image to a weblog

                 Key: ROL-1848
             Project: Roller
          Issue Type: Bug
          Components: Weblog Editor
    Affects Versions: 5.0
         Environment: Ubuntu  2.6.28-16 64bits
            Reporter: Nicolas BONAMY
            Assignee: Roller Unassigned

When we add an image to a weblog (in edition mode), the mediaLink url doesn't appear.

The issue is to modify MediaFileImageChooser.jsp by this :
 <s:iterator id="mediaFile" value="childFiles">

                <li class="align-images"

                        onmouseover="highlight(this, true)" onmouseout="highlight(this, false)">

                        <s:url id="mediaFileURL" includeContext="false"


                        <s:url id="mediaFileThumbnailURL"


                    <div class="mediaObject"

                         onclick="onSelectImage('<s:property value=""/>','<s:property
value="%{mediaFileURL}" />')" >

                        <s:if test="#mediaFile.imageFile">

                            <img border="0" src='<s:property value="%{mediaFileThumbnailURL}"

                                 width='<s:property value="#mediaFile.thumbnailWidth"/>'

                                 height='<s:property value="#mediaFile.thumbnailHeight"/>'



                    <div class="mediaObjectInfo">


                            <str:truncateNicely upper="50">

                                <s:property value="" />








    <div style="clear:left;"></div>



<script type="text/javascript">


    function onSelectImage(name, url) {
        if(url.match("^" + url) == url) {
            window.parent.onSelectImage(name, url);
        } else {
            window.parent.onSelectImage(name, '<s:property
value="absoluteSiteURL" />' + url);



This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message