mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +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";
|
$formid = ($action == 'reply') ? "e-comment-form-reply" : "e-comment-form";
|
||||||
|
|
||||||
$text = "\n<div{$indent}>\n".e107::getMessage()->render('postcomment', true, false, false);//temporary here
|
$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 sp = $(this).attr('id').split("-");
|
||||||
var id = "#comment-" + sp[3];
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user