Commits

Genki Sugawara committed 20dbe7f

fix check bug

Comments (0)

Files changed (2)

Resources/chrome/content/rrset-create-window.js

   var weight = $('rrset-create-window-weight');
   var ttl = $('rrset-create-window-ttl');
 
-  if (({A:1, AAAA:1, CNAME:1, TXT:1})[type]) {
+  if (({A:1, AA:1, AAAA:1, CNAME:1, TXT:1})[type]) {
     identifier.disabled = false;
     weight.disabled = false;
   } else {
     return;
   }
 
-  if ((identifier || weight) && !(({A:1, AAAA:1, CNAME:1, TXT:1})[type])) {
+  if ((identifier || weight) && !(({A:1, AA:1, AAAA:1, CNAME:1, TXT:1})[type])) {
     alert("Weighted resource record sets are supported only for A, AAAA, CNAME, and TXT record types.");
     return;
   }

Resources/chrome/content/rrset-edit-window.js

   var weight = $('rrset-edit-window-weight');
   var ttl = $('rrset-edit-window-ttl');
 
-  if (({A:1, AAAA:1, CNAME:1, TXT:1})[type]) {
+  if (({A:1, AA:1, AAAA:1, CNAME:1, TXT:1})[type]) {
     identifier.disabled = false;
     weight.disabled = false;
   } else {
     return;
   }
 
-  if ((identifier || weight) && !(({A:1, AAAA:1, CNAME:1, TXT:1})[type])) {
+  if ((identifier || weight) && !(({A:1, AA:1, AAAA:1, CNAME:1, TXT:1})[type])) {
     alert("Weighted resource record sets are supported only for A, AAAA, CNAME, and TXT record types.");
     return;
   }