js ftp user bugfix

This commit is contained in:
Serghey Rodin 2015-07-01 01:32:16 +03:00
commit e1b9d53541
3 changed files with 64 additions and 4 deletions

View file

@ -3,7 +3,7 @@ App.Actions.WEB.update_ftp_username_hint = function(elm, hint) {
$(elm).parent().find('.hint').html('');
}
hint = hint.replace(/[^\w\d]/gi, '');
//hint = hint.replace(/[^\w\d]/gi, '');
if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) {
hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length);