Hey folks,

I'm using FCKeditor with IMCE. When activating the java script optimization, IMCE doesn't work propperly. The browser complains about missing ';' or missing '}'. IMCE developers told me, that this is not an IMCE bug. IMCE works fine, when switching off js optimization. The original bug is filed unter #207816.

Thanks for having a look at this.

forschi

Comments

Anonymous’s picture

Status: Active » Fixed

I checked the broken .js file again. The file 'imce_extras.js' is not completely included in the optimized .js file. The optimized file ends with
imce.resizeRows = function(start, end, Max)

what is the following in the original file:

imce.resizeRows = function(start, end, Max) {
  var el = $(imce.BW), h = el.height();
  var diff = end - start, r = h / start, d = Math.round(diff * r), h1 = Math.max(h + d, 50);
  el.height(h1);
  $(imce.LPW).height(end - h1 - $(imce.el('browse-resizer')).height() - 1);
  imce.resizeList(h, h1);
};

The optimized file has 1240 lines.

Deleting the optimized files and waiting for recreation by drupal has no effect.

I figured out, that the issue can be reproduced with activating 'nice menus', and goes away with deactivating it.

I'll open a new bug for that module.

Anonymous’s picture

Status: Fixed » Closed (won't fix)