js / index.html update set

This commit is contained in:
Dima Malishev 2011-09-10 02:10:49 +03:00
parent 6ceecb886e
commit 8155d2cd9c
5 changed files with 55 additions and 27 deletions

View file

@ -22,6 +22,7 @@ App.Pages.prepareHTML = function()
else {
App.Model[App.Env.world].loadList();
}
$('#new-entry-keyword').text(App.Env.world.toLowerCase().replace('_', ' '));
}
App.Pages.DNS.showSubform = function(ref)
@ -49,3 +50,13 @@ App.Pages.DNS.edit = function(elm) {
elm.replaceWith(tpl);
}
App.Pages.USER.new_entry = function(evt)
{
var form_id = App.Constants[App.Env.world + '_FORM_ID'];
$('#'+form_id).remove();
var build_method = App.Env.getWorldName() + '_form';
var tpl = App.HTML.Build[build_method]({}, form_id);
App.Ref.CONTENT.prepend(tpl);
App.Helpers.updateScreen();
$('#'+form_id).find('.ns-entry, .additional-ns-add').addClass('hidden');
}