clean comments date duplication [fixes SCI-469]

This commit is contained in:
zmagod 2016-10-05 08:42:32 +02:00
parent 36fb2713b3
commit d90f17d1eb
4 changed files with 9 additions and 4 deletions

View file

@ -63,7 +63,15 @@ var Comments = (function() {
moreBtn.trigger('blur');
}
debugger;
var date;
$.each(list.find('.comment-date-separator'), function() {
if ( $(this).find('p').html() === date ) {
$(this).remove();
} else {
date = $(this).find('p').html();
}
});
// Reposition dropdown comment options
scrollCommentOptions(listItem
.closest('.content-comments')

View file

@ -61,7 +61,6 @@ function formAjaxResultAsset($form) {
applyCollapseLinkCallBack();
toggleResultEditButtons(true);
initResultCommentTabAjax();
expandResult($newResult);
$imgs = $newResult.find("img");
reloadImages($imgs);

View file

@ -99,7 +99,6 @@ function formAjaxResultTable($form) {
applyCollapseLinkCallBack();
initHandsOnTables($result);
toggleResultEditButtons(true);
initResultCommentTabAjax();
expandResult($result);
});
$form.on("ajax:error", function(e, xhr, status, error) {

View file

@ -60,7 +60,6 @@ function formAjaxResultText($form) {
applyEditResultTextCallback();
applyCollapseLinkCallBack();
toggleResultEditButtons(true);
initResultCommentTabAjax();
expandResult(newResult);
});
$form.on("ajax:error", function(e, xhr, status, error) {