summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
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/files_trashbin
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/files_trashbin')
-rw-r--r--apps/files_trashbin/js/trash.js8
1 files changed, 4 insertions, 4 deletions
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'));
}
});
});