mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
[php][js][css] fixing all little issues and making forms work. Removed all unnecessary elements for Firsta Release
This commit is contained in:
parent
b7710ee5da
commit
230c93fbe1
13 changed files with 3466 additions and 3323 deletions
|
@ -366,14 +366,13 @@ App.Actions.save_form = function(evt) {
|
|||
if (!confirmed) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
var values = App.Helpers.getFormValues(elm);
|
||||
if(App.Validate.form(values, $('#'+elm_id))) {
|
||||
App.Model.add(values, source);
|
||||
var form_id = App.Constants[App.Env.world + '_FORM_ID'];
|
||||
$('#'+form_id).remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var values = App.Helpers.getFormValues(elm);
|
||||
if(App.Validate.form(values, $('#'+elm_id))) {
|
||||
App.Model.add(values, source);
|
||||
var form_id = App.Constants[App.Env.world + '_FORM_ID'];
|
||||
$('#'+form_id).remove();
|
||||
}
|
||||
}
|
||||
else { // OLD ITEM, UPDATING IT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue