javascript error on callback after upload
attiks - September 21, 2007 - 11:19
| Project: | Asset Manager |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I get errors on data.data.nid, telling me it's not an object, one possible solution is this (am_loader.js)
Env: FF on MacOs X
function amReturn(data, text) {
if (data) {
var d = data['data'];
if (!am_tinymce) {
amUpdateTarget(d.nid, d.title, am['filter']['imagecache']);
}
else {
amUpdateTinyMCE(d.nid, am['filter']['imagecache']);
}
}
return false;
}
#1
PS: please ignore the am['filter']['imagecache'] part, is from a patch