Skip to content

Commit c8c8e90

Browse files
committed
NS = Name Server. Closes hestiacp#20
1 parent 401c785 commit c8c8e90

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

web/js/actions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ App.Actions.add_form_ns = function(evt)
561561

562562
var tpl = App.Templates.get('NS_INPUT', 'user');
563563
tpl.set(':NAME', '');
564-
tpl.set(':NS_LABEL', 'NS');
564+
tpl.set(':NS_LABEL', 'Name Server');
565565
var ref = $(elm).hasClass('form-row') ? elm : $(elm).parents('.form-row');
566566
$(ref).before(tpl.finalize());
567567

@@ -571,7 +571,7 @@ App.Actions.add_form_ns = function(evt)
571571

572572
$(form).find('.ns-entry').each(function(i, o)
573573
{
574-
$(o).find('label').text('NS #' + (i + 1));
574+
$(o).find('label').text('Name Server #' + (i + 1));
575575
$(o).find('input').attr('name', 'NS' + (i + 1));
576576
});
577577
}
@@ -587,7 +587,7 @@ App.Actions.delete_ns = function(evt)
587587
form = elm.parents('.form:first');
588588
var total_nses = $(form).find('.ns-entry').length;
589589
if (total_nses == App.Settings.NS_MIN) {
590-
return App.Helpers.alert('Minimum number of NS is ' + App.Settings.NS_MIN);
590+
return App.Helpers.alert('Minimum number of Name Servers is ' + App.Settings.NS_MIN);
591591
}
592592

593593
var form = elm.parents('.form:first');
@@ -596,15 +596,15 @@ App.Actions.delete_ns = function(evt)
596596

597597
$(form).find('.ns-entry').each(function(i, o)
598598
{
599-
$(o).find('label').text('NS #' + (i + 1));
599+
$(o).find('label').text('Name Server #' + (i + 1));
600600
$(o).find('input').attr('name', 'NS' + (i + 1));
601601
});
602602
}
603603

604604
App.Actions.view_full_ns_list = function(evt)
605605
{
606606
var elm = $(evt.target);
607-
App.Helpers.openInnerPopup(elm, $(elm).parents('.prop-box').find('.ns-full-list:first').html(), 'NS list');
607+
App.Helpers.openInnerPopup(elm, $(elm).parents('.prop-box').find('.ns-full-list:first').html(), 'Name Server list');
608608
}
609609

610610
App.Actions.view_template_info = function(evt)

web/js/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ App.HTML.Build.user_form = function (options, id) {
101101
$([3, 4, 5, 6, 7, 8]).each(function (i, index) {
102102
if (options['NS' + index].trim() != '') {
103103
var tpl_ns = App.Templates.get('NS_INPUT', 'user');
104-
tpl_ns.set(':NS_LABEL', 'NS #' + (index));
104+
tpl_ns.set(':NS_LABEL', 'Name Server #' + (index));
105105
tpl_ns.set(':NAME', options['NS' + index]);
106106
ns[ns.length++] = tpl_ns.finalize();
107107
}

web/js/templates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ App.Templates.html = {
378378
PLUS_ONE_NS: ['<div class="form-row cc do_action_add_form_ns additional-ns-add">\
379379
<a href="javascript:void(0);" class="add-ns do_action_add_form_ns">\
380380
<i class="icon do_action_add_form_ns">&nbsp;</i>\
381-
<span class="btn-title do_action_add_form_ns">Add additional NS</span>\
381+
<span class="btn-title do_action_add_form_ns">Add additional Name Server</span>\
382382
</a>\
383383
</div>'],
384384
ENTRIES_WRAPPER: ['<div class="users-list items-list">~!:content~!</div>'],
@@ -432,11 +432,11 @@ App.Templates.html = {
432432
<input type="text" name="LNAME" class="text-field rule-abc rule-required" value="~!:LNAME~!">\
433433
</div>\
434434
<div class="form-row ns-entry cc">\
435-
<label for="#" class="field-label">NameServer #1:</label>\
435+
<label for="#" class="field-label">Name Server #1:</label>\
436436
<input type="text" value="~!:NS1~!" name="NS1" class="text-field rule-required rule-ns">\
437437
</div>\
438438
<div class="form-row ns-entry cc">\
439-
<label for="#" class="field-label">NameServer #2:</label>\
439+
<label for="#" class="field-label">Name Server #2:</label>\
440440
<input type="text" value="~!:NS2~!" name="NS2" class="text-field rule-required rule-ns">\
441441
</div>\
442442
~!:NS~!\

0 commit comments

Comments
 (0)