summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-18 17:58:15 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-18 17:58:15 +0200
commit72d53008cc848f7bdaf55183d6e4be75c8bfae53 (patch)
tree3557d64899d8a9926a1fb8119670c9f2a1a512e1 /core
parent7bd5e89f8cf6e46daa45e588d9275728b93a230e (diff)
downloadnextcloud-server-72d53008cc848f7bdaf55183d6e4be75c8bfae53.tar.gz
nextcloud-server-72d53008cc848f7bdaf55183d6e4be75c8bfae53.zip
indentation
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js86
1 files changed, 43 insertions, 43 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index c4d1f34a094..ddd3cb4ac78 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -281,53 +281,53 @@ var OCdialogs = {
var addConflict = function(conflicts, original, replacement) {
- var conflict = conflicts.find('.template').clone().removeClass('template').addClass('conflict');
-
- conflict.data('data',data);
-
- conflict.find('.filename').text(original.name);
- conflict.find('.original .size').text(humanFileSize(original.size));
- conflict.find('.original .mtime').text(formatDate(original.mtime*1000));
- // ie sucks
- if (replacement.size && replacement.lastModifiedDate) {
- conflict.find('.replacement .size').text(humanFileSize(replacement.size));
- conflict.find('.replacement .mtime').text(formatDate(replacement.lastModifiedDate));
- }
- var path = getPathForPreview(original.name);
- lazyLoadPreview(path, original.type, function(previewpath){
- conflict.find('.original .icon').css('background-image','url('+previewpath+')');
- });
- getCroppedPreview(replacement).then(
- function(path){
+ var conflict = conflicts.find('.template').clone().removeClass('template').addClass('conflict');
+
+ conflict.data('data',data);
+
+ conflict.find('.filename').text(original.name);
+ conflict.find('.original .size').text(humanFileSize(original.size));
+ conflict.find('.original .mtime').text(formatDate(original.mtime*1000));
+ // ie sucks
+ if (replacement.size && replacement.lastModifiedDate) {
+ conflict.find('.replacement .size').text(humanFileSize(replacement.size));
+ conflict.find('.replacement .mtime').text(formatDate(replacement.lastModifiedDate));
+ }
+ var path = getPathForPreview(original.name);
+ lazyLoadPreview(path, original.type, function(previewpath){
+ conflict.find('.original .icon').css('background-image','url('+previewpath+')');
+ });
+ getCroppedPreview(replacement).then(
+ function(path){
+ conflict.find('.replacement .icon').css('background-image','url(' + path + ')');
+ }, function(){
+ getMimeIcon(replacement.type,function(path){
conflict.find('.replacement .icon').css('background-image','url(' + path + ')');
- }, function(){
- getMimeIcon(replacement.type,function(path){
- conflict.find('.replacement .icon').css('background-image','url(' + path + ')');
- });
- }
- );
- conflicts.append(conflict);
-
- //set more recent mtime bold
- // ie sucks
- if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() > original.mtime*1000) {
- conflict.find('.replacement .mtime').css('font-weight', 'bold');
- } else if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() < original.mtime*1000) {
- conflict.find('.original .mtime').css('font-weight', 'bold');
- } else {
- //TODO add to same mtime collection?
+ });
}
+ );
+ conflicts.append(conflict);
+
+ //set more recent mtime bold
+ // ie sucks
+ if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() > original.mtime*1000) {
+ conflict.find('.replacement .mtime').css('font-weight', 'bold');
+ } else if (replacement.lastModifiedDate && replacement.lastModifiedDate.getTime() < original.mtime*1000) {
+ conflict.find('.original .mtime').css('font-weight', 'bold');
+ } else {
+ //TODO add to same mtime collection?
+ }
- // set bigger size bold
- if (replacement.size && replacement.size > original.size) {
- conflict.find('.replacement .size').css('font-weight', 'bold');
- } else if (replacement.size && replacement.size < original.size) {
- conflict.find('.original .size').css('font-weight', 'bold');
- } else {
- //TODO add to same size collection?
- }
+ // set bigger size bold
+ if (replacement.size && replacement.size > original.size) {
+ conflict.find('.replacement .size').css('font-weight', 'bold');
+ } else if (replacement.size && replacement.size < original.size) {
+ conflict.find('.original .size').css('font-weight', 'bold');
+ } else {
+ //TODO add to same size collection?
+ }
- //TODO show skip action for files with same size and mtime in bottom row
+ //TODO show skip action for files with same size and mtime in bottom row
};
//var selection = controller.getSelection(data.originalFiles);