JSON parser improved. Fixed problem with parsing special symbols

This commit is contained in:
Dima Malishev 2011-08-21 20:59:04 +03:00
parent c80f12eaa4
commit b472a367d5
6 changed files with 107 additions and 11 deletions

View file

@ -135,6 +135,7 @@ App.Actions.cancel_form = function(evt, params) {
$('#' + form_id).remove();
}
else {
fb.warn(elm.find('.source').val());
var options = App.Helpers.evalJSON(elm.find('.source').val());
var entry_name = App.Env.world.toLowerCase() + '_entry';
var tpl = App.HTML.Build[entry_name](options);