mirror of
https://github.com/myvesta/vesta
synced 2025-07-11 07:36:47 -07:00
integrated js hints from Dmitry Malishev
This commit is contained in:
parent
c6bf2635dd
commit
f87f9ef052
8 changed files with 1388 additions and 2296 deletions
|
@ -1,11 +1,11 @@
|
|||
App.Actions.WEB.update_ftp_username_hint = function(elm, hint) {
|
||||
if (hint.trim() == '') {
|
||||
$(elm).parent().find('.ftp_username_hint').html('');
|
||||
$(elm).parent().find('.hint').html('');
|
||||
}
|
||||
if (hint.indexOf(GLOBAL.FTP_USER_PREFIX) == 0) {
|
||||
hint = hint.slice(GLOBAL.FTP_USER_PREFIX.length, hint.length);
|
||||
}
|
||||
$(elm).parent().find('.ftp_username_hint').html(GLOBAL.FTP_USER_PREFIX + hint);
|
||||
$(elm).parent().find('.hint').html(GLOBAL.FTP_USER_PREFIX + hint);
|
||||
}
|
||||
|
||||
App.Listeners.WEB.keypress_ftp_username = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue