mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Merge branch 'master' of github.com:serghey-rodin/vesta
This commit is contained in:
commit
0011470eda
2 changed files with 4 additions and 4 deletions
|
@ -3,11 +3,11 @@ App.Actions.WEB.update_ftp_username_hint = function(elm, hint) {
|
|||
$(elm).parent().find('.hint').html('');
|
||||
}
|
||||
|
||||
//hint = hint.replace(/[^\w\d]/gi, '');
|
||||
|
||||
if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) {
|
||||
hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length);
|
||||
}
|
||||
hint = hint.replace(/[^\w\d]/gi, '');
|
||||
|
||||
$(elm).parent().find('.v-ftp-user').val(hint);
|
||||
$(elm).parent().find('.hint').text(GLOBAL.FTP_USER_PREFIX + hint);
|
||||
}
|
||||
|
|
|
@ -3,11 +3,11 @@ App.Actions.WEB.update_ftp_username_hint = function(elm, hint) {
|
|||
$(elm).parent().find('.hint').html('');
|
||||
}
|
||||
|
||||
//hint = hint.replace(/[^\w\d]/gi, '');
|
||||
|
||||
if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) {
|
||||
hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length);
|
||||
}
|
||||
hint = hint.replace(/[^\w\d]/gi, '');
|
||||
|
||||
$(elm).parent().find('.v-ftp-user').val(hint);
|
||||
$(elm).parent().find('.hint').text(GLOBAL.FTP_USER_PREFIX + hint);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue