codem / DisplayAnything3

File and image gallery module for SilverStripe3.0
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

After initial publishing the JS doesn't trigger the drop zone/JS uploader #3

Closed MrJamesEllis closed 12 years ago

MrJamesEllis commented 12 years ago
  1. Create a new gallery
  2. Update details and usage
  3. Save & Publish
  4. Open gallery tab - upload zone says "Loading uploader...."

Looks like the CMS 'afterstatechange' event is not being fired or maybe our event attached to it is not being triggered.

MrJamesEllis commented 12 years ago

Hooked into aftersubmit rather than afterstatechange

https://github.com/codem/DisplayAnything3/commit/52aa885e9190c8967dadf003d6ca9935dd0fd815

MrJamesEllis commented 12 years ago

Update to handle state change from menu nav: https://github.com/codem/DisplayAnything3/commit/d7b7d8b3d04a194ee199631a4b32f4844e56b8a2