Ok, I think I got to the bottom of this, it's a combination of TinyMCE
and Firefox 3.5

Unfortunately my Firebug expertise isn't that great, but with a few
alert boxes, it is the IF statement in DateTimeShortcuts.js that isn't
firing:

var scripts = document.getElementsByTagName('script');
for (var i=0; i<scripts.length; i++) {
  if (scripts[i].src.match(/DateTimeShortcuts/)) {
    var idx = scripts[i].src.indexOf('js/admin/DateTimeShortcuts');
    DateTimeShortcuts.admin_media_prefix = scripts[i].src.substring(0, idx);
    break;
  }
}

Adding an alert(scripts[i].src) at the top of the FOR loop stops after
the 'core.js' file, so that IF statement never fires.

If I add a console.log at that point, the JavaScript runs, sometimes,
but sometimes stops after core.js.

TinyMCE is two files in the source code, but then it imports another
10 (ish) for the pluggins.

It *seems* like Firefox gives up on the script loop when there are so
many to go through.

My solution has been to move the TinyMCE source files to after the
admin JS, which works for me, but is somewhat annoying.

I'll see if I can put a test case together, it might be worth adding a
bug report somewhere, although I'm not sure if it's for TinyMCE or
Firefox?!?

Thanks,

-Alastair

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to