diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 8bcdb2166..4a8f20bf5 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -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\n".e107::getMessage()->render('postcomment', true, false, false);//temporary here diff --git a/e107_web/js/core/front.jquery.js b/e107_web/js/core/front.jquery.js index 91abf2049..08d2eeb30 100644 --- a/e107_web/js/core/front.jquery.js +++ b/e107_web/js/core/front.jquery.js @@ -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; }