1
0
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:
Cameron
2015-02-04 12:43:52 -08:00
parent d437765a22
commit 5fc8f21577
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}