Validation for no-spaces, a-zA-Z, emails added

This commit is contained in:
Dima Malishev 2011-09-02 23:15:07 +03:00
parent f65b8c618b
commit d5457b58d0
4 changed files with 80 additions and 10 deletions

View file

@ -72,10 +72,11 @@ App.Model.add = function(values, source_json)
App.Helpers.Warn('Changes were not applied');
}
else {
var build_method = App.Env.getWorldName() + '_entry';
/*var build_method = App.Env.getWorldName() + '_entry';
var tpl = App.HTML.Build[build_method](values, 'new');
App.Ref.CONTENT..replaceWith(tpl);
App.Ref.CONTENT..replaceWith(tpl);*/
// todo: reply.data;
App.Pages.prepareHTML();
}
});
}