mirror of
https://github.com/myvesta/vesta
synced 2025-07-15 01:23:23 -07:00
js / index.html update set
This commit is contained in:
parent
6ceecb886e
commit
8155d2cd9c
5 changed files with 55 additions and 27 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue