mirror of
https://github.com/myvesta/vesta
synced 2025-07-14 00:53:30 -07:00
Timezone warning / add entry no-reload
This commit is contained in:
parent
511703fa3e
commit
79699b83be
3 changed files with 16 additions and 10 deletions
|
@ -82,6 +82,7 @@ App.Model.CRON.loadList = function(callback)
|
|||
App.Model.add = function(values, source_json)
|
||||
{
|
||||
var method = App.Settings.getMethodName('add');
|
||||
|
||||
App.Ajax.request(method, {
|
||||
spell: $.toJSON(values)
|
||||
}, function(reply){
|
||||
|
@ -89,12 +90,7 @@ App.Model.add = function(values, source_json)
|
|||
App.Helpers.Warn('Changes were not applied ' + App.Helpers.toJSON(reply.errors) );
|
||||
}
|
||||
else {
|
||||
/*var build_method = App.Env.getWorldName() + '_entry';
|
||||
var tpl = App.HTML.Build[build_method](values, 'new');
|
||||
App.Ref.CONTENT..replaceWith(tpl);*/
|
||||
// todo: reply.data;
|
||||
App.Pages.prepareHTML();
|
||||
App.Helpers.updateScreen();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue