summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorroot <kondou@ts.unde.re>2013-04-05 01:56:32 +0200
committerroot <kondou@ts.unde.re>2013-04-05 01:56:32 +0200
commit74b02db3371992968ced963f104afd368b7e6473 (patch)
tree417dfdff6e7a8cf8d8290b4ec214d396eddf8481 /apps
parente824c6cffa5408a42b218f943a1e017cf598cedb (diff)
downloadnextcloud-server-74b02db3371992968ced963f104afd368b7e6473.tar.gz
nextcloud-server-74b02db3371992968ced963f104afd368b7e6473.zip
Fixed things in alert-messages
Two parameters for OC.dialogs.alert, otherwise one will be "undefined". Also fixed missing translation.
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js8
-rw-r--r--apps/files_trashbin/js/trash.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 6c5536aafab..e847550444f 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -615,7 +615,7 @@ $(document).ready(function() {
tr.find('td.filename').attr('style','background-image:url('+path+')');
});
} else {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files', 'Error'));
}
}
);
@@ -631,7 +631,7 @@ $(document).ready(function() {
var tr=$('tr').filterAttr('data-file',name);
tr.attr('data-id', result.data.id);
} else {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files', 'Error'));
}
}
);
@@ -920,7 +920,7 @@ var folderDropOptions={
$('#notification').fadeIn();
}
} else {
- OC.dialogs.alert(t('Error moving file'));
+ OC.dialogs.alert(t('Error moving file'), t('files', 'Error'));
}
});
});
@@ -958,7 +958,7 @@ var crumbDropOptions={
$('#notification').fadeIn();
}
} else {
- OC.dialogs.alert(t('Error moving file'));
+ OC.dialogs.alert(t('Error moving file'), t('files', 'Error'));
}
});
});
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 39e76e10c9c..8bac2af60da 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -16,7 +16,7 @@ $(document).ready(function() {
row.parentNode.removeChild(row);
}
if (result.status != 'success') {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
});
@@ -43,7 +43,7 @@ $(document).ready(function() {
row.parentNode.removeChild(row);
}
if (result.status != 'success') {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
});
@@ -111,7 +111,7 @@ $(document).ready(function() {
row.parentNode.removeChild(row);
}
if (result.status != 'success') {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
});
});
@@ -136,7 +136,7 @@ $(document).ready(function() {
row.parentNode.removeChild(row);
}
if (result.status != 'success') {
- OC.dialogs.alert(result.data.message, 'Error');
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
});
});