mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
JS hint for dns record
This commit is contained in:
parent
b7ab201653
commit
11d93a0f87
1 changed files with 4 additions and 4 deletions
|
@ -11,12 +11,12 @@ App.Actions.DB.update_dns_record_hint = function(elm, hint) {
|
|||
if (hint == '@') {
|
||||
hint = '';
|
||||
}
|
||||
|
||||
|
||||
// dont show pregix if domain name = rec value
|
||||
if (hint == GLOBAL.DNS_REC_PREFIX || hint + '.' == GLOBAL.DNS_REC_PREFIX) {
|
||||
if (hint == GLOBAL.DNS_REC_PREFIX + '.') {
|
||||
hint = '';
|
||||
}
|
||||
|
||||
|
||||
// add dot at the end if needed
|
||||
if (hint != '' && hint.slice(-1) != '.') {
|
||||
hint += '.';
|
||||
|
@ -33,7 +33,7 @@ App.Listeners.DB.keypress_dns_rec_entry = function() {
|
|||
if (current_rec.trim() != '') {
|
||||
App.Actions.DB.update_dns_record_hint(ref, current_rec);
|
||||
}
|
||||
|
||||
|
||||
ref.bind('keypress input', function(evt) {
|
||||
clearTimeout(window.frp_usr_tmt);
|
||||
window.frp_usr_tmt = setTimeout(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue