Download & Extend

javascript error on callback after upload

Project:Asset Manager
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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;
}

Comments

#1

PS: please ignore the am['filter']['imagecache'] part, is from a patch