I added jquery_update and imce started failing. Firebug had a failure message in imce_set_tinymce.js saying that "unclick" was unknown. I found this bug report against Panels dealing with the same issue: http://drupal.org/node/163509

From that I did the following change and now imce is now working. The important thing is to call unbind('click') rather than unclick()

Index: imce_set_inline.js
===================================================================
--- imce_set_inline.js  (revision 137)
+++ imce_set_inline.js  (working copy)
@@ -7,7 +7,8 @@
 function imceInitiateInline() {
   $('a.imce-insert-inline').each( function () {
     $(this.parentNode).css('display', 'block');
-    $(this).unclick().click(function() {
+    $(this).unbind('click')
+    $(this).click(function() {
       imceActiveTextarea = $('#'+this.name.split('-IMCE-')[0]).get(0);
       imceActiveType = this.name.split('-IMCE-')[1];
       window.open(this.href, '_imce_', 'width=640, height=480, resizable=1');

Hopefully the diff/patch format is appropriate for y'all to digest.

CommentFileSizeAuthor
#3 imce-unmouse.patch504 bytesnoelbush

Comments

ajayg’s picture

I reviewed the code and confirmed this works in 5.x
+1 for getting this patch in.

ajayg’s picture

Status: Active » Reviewed & tested by the community
noelbush’s picture

StatusFileSize
new504 bytes

Similarly, imce_extras.js has a line that needs to be corrected like so (also attached):

Index: imce/imce_extras.js
===================================================================
--- imce/imce_extras.js (revision 12)
+++ imce/imce_extras.js (working copy)
@@ -58,7 +58,7 @@
       return false;
     }
     function endDrag(e) {
-      $(document).unmousemove(doDrag).unmouseup(endDrag);
+      $(document).unbind('mousemove').unbind('mouseup');
     }
     if (e.srcElement && e.srcElement.id == 'dirname') return;
     var hTotal = $('#bodydiv').height() + $('#imagepreview').height();
ufku’s picture

Status: Reviewed & tested by the community » Fixed

commited. thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.