1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

[my libs] added 'change password' for encrypted libraries (#2922)

This commit is contained in:
llj
2019-02-01 17:22:42 +08:00
committed by Daniel Pan
parent c0d6b023ff
commit 56613d95d4
6 changed files with 173 additions and 0 deletions

View File

@@ -144,6 +144,15 @@ export const Utils = {
.innerHTML;
},
generateDialogTitle: function(title, operationTarget) {
/*
* @param title: gettext('...{placeholder}...')
*/
const targetStr = this.HTMLescape(operationTarget);
const str = `<span class="op-target ellipsis ellipsis-op-target" title=${targetStr}>${targetStr}</span>`;
return title.replace('{placeholder}', str);
},
getFileName: function(filePath) {
let lastIndex = filePath.lastIndexOf('/');
return filePath.slice(lastIndex+1);