Skip to content

Commit 11d93a0

Browse files
committed
JS hint for dns record
1 parent b7ab201 commit 11d93a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web/js/pages/add.dns.record.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ App.Actions.DB.update_dns_record_hint = function(elm, hint) {
1111
if (hint == '@') {
1212
hint = '';
1313
}
14-
14+
1515
// dont show pregix if domain name = rec value
16-
if (hint == GLOBAL.DNS_REC_PREFIX || hint + '.' == GLOBAL.DNS_REC_PREFIX) {
16+
if (hint == GLOBAL.DNS_REC_PREFIX + '.') {
1717
hint = '';
1818
}
19-
19+
2020
// add dot at the end if needed
2121
if (hint != '' && hint.slice(-1) != '.') {
2222
hint += '.';
@@ -33,7 +33,7 @@ App.Listeners.DB.keypress_dns_rec_entry = function() {
3333
if (current_rec.trim() != '') {
3434
App.Actions.DB.update_dns_record_hint(ref, current_rec);
3535
}
36-
36+
3737
ref.bind('keypress input', function(evt) {
3838
clearTimeout(window.frp_usr_tmt);
3939
window.frp_usr_tmt = setTimeout(function() {

0 commit comments

Comments
 (0)