From c8c8e9043537465327ebe8a160d74c8ad550579c Mon Sep 17 00:00:00 2001 From: Malishev Dmitry Date: Tue, 10 Jan 2012 12:22:32 +0300 Subject: [PATCH] NS = Name Server. Closes #20 --- web/js/actions.js | 10 +++++----- web/js/html.js | 2 +- web/js/templates.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/js/actions.js b/web/js/actions.js index 4a9627839..88a8cecd7 100644 --- a/web/js/actions.js +++ b/web/js/actions.js @@ -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) diff --git a/web/js/html.js b/web/js/html.js index 042cfdd58..94aba7bbe 100644 --- a/web/js/html.js +++ b/web/js/html.js @@ -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(); } diff --git a/web/js/templates.js b/web/js/templates.js index 625b1e7aa..cfcc70395 100644 --- a/web/js/templates.js +++ b/web/js/templates.js @@ -378,7 +378,7 @@ App.Templates.html = { PLUS_ONE_NS: ['
\ \  \ - Add additional NS\ + Add additional Name Server\ \
'], ENTRIES_WRAPPER: ['
~!:content~!
'], @@ -432,11 +432,11 @@ App.Templates.html = { \ \
\ - \ + \ \
\
\ - \ + \ \
\ ~!:NS~!\