mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fixes #856 - duplicate 'reply to' comment forms.
This commit is contained in:
@@ -258,7 +258,7 @@ class comment
|
||||
|
||||
// -------------------------------------------------------------
|
||||
|
||||
$indent = ($action == 'reply') ? " class='media offset1' " : "";
|
||||
$indent = ($action == 'reply') ? " class='media col-md-offset-1 offset1' " : " class='media' ";
|
||||
$formid = ($action == 'reply') ? "e-comment-form-reply" : "e-comment-form";
|
||||
|
||||
$text = "\n<div{$indent}>\n".e107::getMessage()->render('postcomment', true, false, false);//temporary here
|
||||
|
@@ -109,7 +109,12 @@ $(document).ready(function()
|
||||
var sp = $(this).attr('id').split("-");
|
||||
var id = "#comment-" + sp[3];
|
||||
|
||||
if($('.e-comment-edit-save').length != 0) //prevent creating save button twice.
|
||||
var present = $('#e-comment-form-reply');
|
||||
// console.log(present);
|
||||
|
||||
|
||||
|
||||
if($('.e-comment-edit-save').length !== 0 || $('#e-comment-form-reply').length !== 0 ) //prevent creating save button twice.
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user