mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +08:00
clean comments date duplication [fixes SCI-469]
This commit is contained in:
parent
36fb2713b3
commit
d90f17d1eb
4 changed files with 9 additions and 4 deletions
|
@ -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')
|
||||
|
|
|
@ -61,7 +61,6 @@ function formAjaxResultAsset($form) {
|
|||
applyCollapseLinkCallBack();
|
||||
|
||||
toggleResultEditButtons(true);
|
||||
initResultCommentTabAjax();
|
||||
expandResult($newResult);
|
||||
$imgs = $newResult.find("img");
|
||||
reloadImages($imgs);
|
||||
|
|
|
@ -99,7 +99,6 @@ function formAjaxResultTable($form) {
|
|||
applyCollapseLinkCallBack();
|
||||
initHandsOnTables($result);
|
||||
toggleResultEditButtons(true);
|
||||
initResultCommentTabAjax();
|
||||
expandResult($result);
|
||||
});
|
||||
$form.on("ajax:error", function(e, xhr, status, error) {
|
||||
|
|
|
@ -60,7 +60,6 @@ function formAjaxResultText($form) {
|
|||
applyEditResultTextCallback();
|
||||
applyCollapseLinkCallBack();
|
||||
toggleResultEditButtons(true);
|
||||
initResultCommentTabAjax();
|
||||
expandResult(newResult);
|
||||
});
|
||||
$form.on("ajax:error", function(e, xhr, status, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue