summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-20 14:56:28 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-20 14:56:28 +0100
commit476444ab1a6f925b87ca6f6382953633fd060283 (patch)
tree710f28cfa3b89d1ec530c7278d870d062ae13724 /apps/files/js
parent6cf83de60e577fa13c0e3963761153c26b854c01 (diff)
downloadnextcloud-server-476444ab1a6f925b87ca6f6382953633fd060283.tar.gz
nextcloud-server-476444ab1a6f925b87ca6f6382953633fd060283.zip
Fixed title format
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6bf134eed3b..3fd3c406b2f 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -22,6 +22,13 @@ window.FileList={
* Sets a new page title
*/
setPageTitle: function(title){
+ if (title) {
+ title += ' - ';
+ }
+ else {
+ title = '';
+ }
+ title += t('files', 'Files');
// Sets the page title with the " - ownCloud" suffix as in templates
window.document.title = title + ' - ' + oc_defaults.title;
@@ -206,7 +213,7 @@ window.FileList={
FileList.setPageTitle(baseDir);
}
else {
- FileList.setPageTitle(t('files', 'Files'));
+ FileList.setPageTitle();
}
FileList.setCurrentDir(targetDir, changeUrl);