Press enter to create a shared folder when typing its name

pull/1/head
yflory 7 years ago
parent 8c20c7823e
commit c08951dd91

@ -71,7 +71,7 @@ define([
// Icons // Icons
var faFolder = 'fa-folder'; var faFolder = 'fa-folder';
var faFolderOpen = 'fa-folder-open'; var faFolderOpen = 'fa-folder-open';
var faSharedFolder = 'fa-users'; var faSharedFolder = 'fa-hdd-o';
var faReadOnly = 'fa-eye'; var faReadOnly = 'fa-eye';
var faRename = 'fa-pencil'; var faRename = 'fa-pencil';
var faTrash = 'fa-trash'; var faTrash = 'fa-trash';
@ -1720,6 +1720,12 @@ define([
]), ]),
]); ]);
$(content).find('#cp-app-drive-sf-name').keydown(function (e) {
if (e.which === 13) {
UI.findOKButton().click();
}
});
UI.confirm(content, function (yes) { UI.confirm(content, function (yes) {
if (!yes) { return void cb(); } if (!yes) { return void cb(); }

Loading…
Cancel
Save