Javascript update set

This commit is contained in:
Malishev Dmitry 2011-09-09 20:29:10 +03:00
parent 0b9711d7c9
commit 257423147e
9 changed files with 94 additions and 48 deletions

View file

@ -84,7 +84,7 @@ App.Actions.save_form = function(evt) {
if(App.Validate.form(values, $('#'+elm_id))) {
App.Model.update(values, source, elm);
}
}
}
}
// do_action_edit
@ -92,14 +92,12 @@ App.Actions.edit = function(evt) {
var elm = $(evt.target);
elm = elm.hasClass('row') ? elm : elm.parents('.row');
var options = elm.find('.source').val();
fb.warn(elm);
fb.warn(options);
var options = elm.find('.source').val();
var build_method = App.Env.getWorldName() + '_form';
var tpl = App.HTML.Build[build_method](options);
elm.replaceWith(tpl);
//App.Pages[App.Env.world].edit(elm);
App.Helpers.disbleNotEditable();
//App.Helpers.updateScreen();
}