Uses OC.basename instead of custom code
This commit is contained in:
parent
01dc7c5482
commit
577559458d
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ window.FileList={
|
|||
var $dir = $('#dir'),
|
||||
url,
|
||||
currentDir = $dir.val() || '/',
|
||||
baseDir = targetDir.split('/').pop(),
|
||||
baseDir = OC.basename(targetDir),
|
||||
targetDir = targetDir || '/';
|
||||
if (!force && currentDir === targetDir) {
|
||||
return;
|
||||
|
@ -1117,7 +1117,7 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
|
||||
baseDir = parseCurrentDirFromUrl().split('/').pop();
|
||||
baseDir = OC.basename(parseCurrentDirFromUrl());
|
||||
|
||||
if (baseDir !== '') {
|
||||
FileList.setPageTitle(baseDir);
|
||||
|
|
Loading…
Reference in a new issue