Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Modal
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 22:35 UTC
Updated:
15 Feb 2013 at 20:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
henrijs.seso commentedMoving to more proper place due to latest discoveries.
Comment #2
henrijs.seso commentedThere is a problem in modal.js in
forloop, linefor (var i in $(target).parents().get()) {. It stops working if some other module requires ExtJs (for example, Aloha editor) with which Array prototype has a method 'remove' which gets in loop and brakes js.See more at #1593642: Compability with Panels IPE comment #13.
Comment #3
muhleder commentedHere's a patch which should fix it. You will probably see the same issue with other libraries which extend the array prototype, eg prototype.js
http://www.prototypejs.org/api/array
Personally I don't think these libraries should be doing this, but anyway..
Comment #4
tim.plunkettNaming the patch with a # prevents me from opening it. Can you reupload it?
Comment #5
muhleder commentedSure, sorry about that.
Comment #6
henrijs.seso commented#5 fixes particular issue with ExtJs. Well done!
(Shame I could not figure it out myself even with tutorial, so that's how you iterate through numeric keys...)
Comment #7
henrijs.seso commentedComment #8
tobiasbavailability_calendars use also Array.prototype, which cost me hours to understand, why on earth works my modal window on this page but not this page :D. now I know it.
Comment #9
andypostI think there's more then one place with wrong enum for properties.
Comment #10
merlinofchaos commentedCommitted and pushed.