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'); 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 // Reposition dropdown comment options
scrollCommentOptions(listItem scrollCommentOptions(listItem
.closest('.content-comments') .closest('.content-comments')

View file

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

View file

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

View file

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