Skip to content

Commit 123fdac

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix loading mtime of new file in conflict dialog in firefox
Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
1 parent 2a0c0ea commit 123fdac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/OC/dialogs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -790,9 +790,9 @@ const Dialogs = {
790790
$originalDiv.find('.size').text(OC.Util.humanFileSize(original.size))
791791
$originalDiv.find('.mtime').text(OC.Util.formatDate(original.mtime))
792792
// ie sucks
793-
if (replacement.size && replacement.lastModifiedDate) {
793+
if (replacement.size && replacement.lastModified) {
794794
$replacementDiv.find('.size').text(OC.Util.humanFileSize(replacement.size))
795-
$replacementDiv.find('.mtime').text(OC.Util.formatDate(replacement.lastModifiedDate))
795+
$replacementDiv.find('.mtime').text(OC.Util.formatDate(replacement.lastModified))
796796
}
797797
var path = original.directory + '/' + original.name
798798
var urlSpec = {
@@ -823,9 +823,9 @@ const Dialogs = {
823823

824824
// set more recent mtime bold
825825
// ie sucks
826-
if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() > original.mtime) {
826+
if (replacement.lastModified > original.mtime) {
827827
$replacementDiv.find('.mtime').css('font-weight', 'bold')
828-
} else if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() < original.mtime) {
828+
} else if (replacement.lastModified < original.mtime) {
829829
$originalDiv.find('.mtime').css('font-weight', 'bold')
830830
} else {
831831
// TODO add to same mtime collection?

0 commit comments

Comments
 (0)