Skip to content

Commit cf49945

Browse files
authored
make domain non-global (hestiacp#3270)
i think domain was accidentally made global.
1 parent 3d80234 commit cf49945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/js/pages/add_dns_rec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// Updates database dns record dynamically, showing its full domain path
44
App.Actions.DB.update_dns_record_hint = function (elm, hint) {
5-
domain = $('input[name="v_domain"]').val();
5+
const domain = $('input[name="v_domain"]').val();
66
// clean hint
77
if (hint.trim() == '') {
88
$(elm).parent().find('.hint').text('');

web/js/pages/edit_dns_rec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Updates database dns record dynamically, showing its full domain path
44
App.Actions.DB.update_dns_record_hint = function (elm, hint) {
55
// clean hint
6-
domain = $('input[name="v_domain"]').val();
6+
const domain = $('input[name="v_domain"]').val();
77
if (hint.trim() == '') {
88
$(elm).parent().find('.hint').text('');
99
}

0 commit comments

Comments
 (0)