diff --git a/web/js/html.js b/web/js/html.js index 51e8c107..396e3569 100644 --- a/web/js/html.js +++ b/web/js/html.js @@ -220,7 +220,7 @@ App.HTML.Build.user_form = function(options, id) tpl.set(':save_button', 'SAVE'); } - options = !App.Helpers.isEmpty(options) ? options : {'CONTACT':'', 'PASSWORD':'','LOGIN_NAME':'','NS':''}; + options = !App.Helpers.isEmpty(options) ? options : {'CONTACT':'', 'PASSWORD':'','LOGIN_NAME':'','LNAME':'', 'FNAME':''}; tpl = App.HTML.setTplKeys(tpl, options, true); tpl = App.HTML.Build.user_selects(tpl, options); diff --git a/web/js/model.js b/web/js/model.js index d4c2541e..b7a0e5ff 100644 --- a/web/js/model.js +++ b/web/js/model.js @@ -72,10 +72,11 @@ App.Model.add = function(values, source_json) App.Helpers.Warn('Changes were not applied'); } else { - var build_method = App.Env.getWorldName() + '_entry'; + /*var build_method = App.Env.getWorldName() + '_entry'; var tpl = App.HTML.Build[build_method](values, 'new'); - App.Ref.CONTENT..replaceWith(tpl); + App.Ref.CONTENT..replaceWith(tpl);*/ // todo: reply.data; + App.Pages.prepareHTML(); } }); } diff --git a/web/js/templates.js b/web/js/templates.js index a8101200..d8c2e2b6 100644 --- a/web/js/templates.js +++ b/web/js/templates.js @@ -285,11 +285,11 @@ App.Templates.html = { \