diff options
author | Max Kostikov <max@kostikov.co> | 2019-05-01 06:23:56 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-05-01 06:23:56 +0200 |
commit | 9af8a1d30cb6aeda8a92dd5e4a333fdd2c710861 (patch) | |
tree | 2f10afd91a7fa5e8c1d0362c4cfc79034f04dff1 /view/tpl | |
parent | 4da96ee98035956620dcb80e4a76832e3d4ff168 (diff) | |
download | volse-hubzilla-9af8a1d30cb6aeda8a92dd5e4a333fdd2c710861.tar.gz volse-hubzilla-9af8a1d30cb6aeda8a92dd5e4a333fdd2c710861.tar.bz2 volse-hubzilla-9af8a1d30cb6aeda8a92dd5e4a333fdd2c710861.zip |
Move JS to main module
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/conv_item.tpl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 522a1b8ec..5df706b20 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -1,15 +1,3 @@ -<script> -function doreply(parent, ident, owner, name) { - var form = $('#comment-edit-form-' + parent.toString()); - form.find('input[name=parent]').val(ident); - var i = form.find('button[type=submit]'); - var btn = i.html().replace(/<[^>]*>/g, '').trim(); - i.html('<i class="fa fa-reply" ></i> ' + btn); - i.prop('title', '{{$item.reply_to.2}} ' + name); - form.find('textarea').val("@{" + owner + "}\n"); - $('#comment-edit-text-' + parent.toString()).focus(); -} -</script> {{if $item.comment_firstcollapsed}} <div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});"> <span id="hide-comments-{{$item.id}}" class="hide-comments">{{$item.hide_text}}</span> <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span> @@ -115,7 +103,7 @@ function doreply(parent, ident, owner, name) { </button> {{/if}} {{if $item.reply_to}} - <button type="button" title="{{$item.reply_to.0}}" class="btn btn-outline-secondary btn-sm" onclick="doreply({{$item.parent}},{{$item.id}},'{{$item.author_id}}'); return false;"> + <button type="button" title="{{$item.reply_to.0}}" class="btn btn-outline-secondary btn-sm" onclick="doreply({{$item.parent}},{{$item.id}},'{{$item.author_id}}', '{{$item.reply_to.2}} {{$item.name}}'); return false;"> <i class="fa fa-reply" ></i> </button> {{/if}} |