• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Quick editing post by double-clicks

TheLord

Member
template: message

find:
Code:
<div class="messageContent">


<article><blockquote class="messageText ugc baseHtml">{xen:raw $message.messageHtml}</blockquote></article>


            {xen:raw $messageContentAfterTemplate}

        </div>


replace for:
Code:
<xen:if is="{$post.canEdit}"><span onDblClick="javascipt:window.location.href='{xen:link posts/edit, $post}'"></xen:if>
        <div class="messageContent">

<article><blockquote class="messageText ugc baseHtml">{xen:raw $message.messageHtml}</blockquote></article>

            {xen:raw $messageContentAfterTemplate}

        </div>
        <xen:if is="{$post.canEdit}"></span></xen:if>
 
Top Bottom