فهرست منبع

JS hint for dns record

Serghey Rodin 12 سال پیش
والد
کامیت
11d93a0f87
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      web/js/pages/add.dns.record.js

+ 4 - 4
web/js/pages/add.dns.record.js

@@ -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() {