mirror of
https://github.com/myvesta/vesta
synced 2025-07-11 07:36:47 -07:00
NS = Name Server. Closes #20
This commit is contained in:
parent
401c7851ea
commit
c8c8e90435
3 changed files with 9 additions and 9 deletions
|
@ -561,7 +561,7 @@ App.Actions.add_form_ns = function(evt)
|
|||
|
||||
var tpl = App.Templates.get('NS_INPUT', 'user');
|
||||
tpl.set(':NAME', '');
|
||||
tpl.set(':NS_LABEL', 'NS');
|
||||
tpl.set(':NS_LABEL', 'Name Server');
|
||||
var ref = $(elm).hasClass('form-row') ? elm : $(elm).parents('.form-row');
|
||||
$(ref).before(tpl.finalize());
|
||||
|
||||
|
@ -571,7 +571,7 @@ App.Actions.add_form_ns = function(evt)
|
|||
|
||||
$(form).find('.ns-entry').each(function(i, o)
|
||||
{
|
||||
$(o).find('label').text('NS #' + (i + 1));
|
||||
$(o).find('label').text('Name Server #' + (i + 1));
|
||||
$(o).find('input').attr('name', 'NS' + (i + 1));
|
||||
});
|
||||
}
|
||||
|
@ -587,7 +587,7 @@ App.Actions.delete_ns = function(evt)
|
|||
form = elm.parents('.form:first');
|
||||
var total_nses = $(form).find('.ns-entry').length;
|
||||
if (total_nses == App.Settings.NS_MIN) {
|
||||
return App.Helpers.alert('Minimum number of NS is ' + App.Settings.NS_MIN);
|
||||
return App.Helpers.alert('Minimum number of Name Servers is ' + App.Settings.NS_MIN);
|
||||
}
|
||||
|
||||
var form = elm.parents('.form:first');
|
||||
|
@ -596,7 +596,7 @@ App.Actions.delete_ns = function(evt)
|
|||
|
||||
$(form).find('.ns-entry').each(function(i, o)
|
||||
{
|
||||
$(o).find('label').text('NS #' + (i + 1));
|
||||
$(o).find('label').text('Name Server #' + (i + 1));
|
||||
$(o).find('input').attr('name', 'NS' + (i + 1));
|
||||
});
|
||||
}
|
||||
|
@ -604,7 +604,7 @@ App.Actions.delete_ns = function(evt)
|
|||
App.Actions.view_full_ns_list = function(evt)
|
||||
{
|
||||
var elm = $(evt.target);
|
||||
App.Helpers.openInnerPopup(elm, $(elm).parents('.prop-box').find('.ns-full-list:first').html(), 'NS list');
|
||||
App.Helpers.openInnerPopup(elm, $(elm).parents('.prop-box').find('.ns-full-list:first').html(), 'Name Server list');
|
||||
}
|
||||
|
||||
App.Actions.view_template_info = function(evt)
|
||||
|
|
|
@ -101,7 +101,7 @@ App.HTML.Build.user_form = function (options, id) {
|
|||
$([3, 4, 5, 6, 7, 8]).each(function (i, index) {
|
||||
if (options['NS' + index].trim() != '') {
|
||||
var tpl_ns = App.Templates.get('NS_INPUT', 'user');
|
||||
tpl_ns.set(':NS_LABEL', 'NS #' + (index));
|
||||
tpl_ns.set(':NS_LABEL', 'Name Server #' + (index));
|
||||
tpl_ns.set(':NAME', options['NS' + index]);
|
||||
ns[ns.length++] = tpl_ns.finalize();
|
||||
}
|
||||
|
|
|
@ -378,7 +378,7 @@ App.Templates.html = {
|
|||
PLUS_ONE_NS: ['<div class="form-row cc do_action_add_form_ns additional-ns-add">\
|
||||
<a href="javascript:void(0);" class="add-ns do_action_add_form_ns">\
|
||||
<i class="icon do_action_add_form_ns"> </i>\
|
||||
<span class="btn-title do_action_add_form_ns">Add additional NS</span>\
|
||||
<span class="btn-title do_action_add_form_ns">Add additional Name Server</span>\
|
||||
</a>\
|
||||
</div>'],
|
||||
ENTRIES_WRAPPER: ['<div class="users-list items-list">~!:content~!</div>'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue