I don't like the way that json arrays are managed on both the front and
backend.
I think simply a change to using boolean types instead of string 'error' or
'success' will have to do for now, it's definitely a lot more elegant.
JS EG:
var obj = tinymce.util.JSON.parse(response);
if (!obj.outcome) {
tinyMCEPopup.editor.windowManager.alert(obj.message);
} else {
...
}
Original issue reported on code.google.com by willis...@gmail.com on 5 May 2009 at 2:58
Original issue reported on code.google.com by
willis...@gmail.com
on 5 May 2009 at 2:58