Просмотр исходного кода

make domain non-global (#3270)

i think domain was accidentally made global.
divinity76 3 лет назад
Родитель
Сommit
cf49945cf8
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      web/js/pages/add_dns_rec.js
  2. 1 1
      web/js/pages/edit_dns_rec.js

+ 1 - 1
web/js/pages/add_dns_rec.js

@@ -2,7 +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();
+	const domain = $('input[name="v_domain"]').val();
 	// clean hint
 	if (hint.trim() == '') {
 		$(elm).parent().find('.hint').text('');

+ 1 - 1
web/js/pages/edit_dns_rec.js

@@ -3,7 +3,7 @@
 // Updates database dns record dynamically, showing its full domain path
 App.Actions.DB.update_dns_record_hint = function (elm, hint) {
 	// clean hint
-	domain = $('input[name="v_domain"]').val();
+	const domain = $('input[name="v_domain"]').val();
 	if (hint.trim() == '') {
 		$(elm).parent().find('.hint').text('');
 	}