|
|
@@ -2,6 +2,7 @@
|
|
|
//
|
|
|
// Updates database dns record dynamically, showing its full domain path
|
|
|
App.Actions.DB.update_dns_record_hint = function (elm, hint) {
|
|
|
+ domain = $('input[name="v_domain"]').val();
|
|
|
// clean hint
|
|
|
if (hint.trim() == '') {
|
|
|
$(elm).parent().find('.hint').text('');
|
|
|
@@ -13,7 +14,7 @@ App.Actions.DB.update_dns_record_hint = function (elm, hint) {
|
|
|
}
|
|
|
|
|
|
// dont show pregix if domain name = rec value
|
|
|
- if (hint == Alpine.store('globals').DNS_REC_PREFIX + '.') {
|
|
|
+ if (hint == domain) {
|
|
|
hint = '';
|
|
|
}
|
|
|
|
|
|
@@ -25,7 +26,7 @@ App.Actions.DB.update_dns_record_hint = function (elm, hint) {
|
|
|
$(elm)
|
|
|
.parent()
|
|
|
.find('.hint')
|
|
|
- .text(hint + Alpine.store('globals').DNS_REC_PREFIX);
|
|
|
+ .text(hint + domain);
|
|
|
};
|
|
|
|
|
|
//
|