ICEfaces
  1. ICEfaces
  2. ICE-1705

panelPostioned not working when 'handle' attribute declared

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any

      Description

      unverified

      declaring 'handle' attribute breaks the panelPostioned

        Activity

        Hide
        Philip Breau added a comment -

        Tested with 1.6

        As soon as you add the handle attribute the following js error results:

        Element.childrenWithClassName is not a function ice-extras.js (line 4774)
        [Break on this error] var _432=_42d.handle?Element.childrenWithClassName(e,_42d.handle)[0]:e;

        Show
        Philip Breau added a comment - Tested with 1.6 As soon as you add the handle attribute the following js error results: Element.childrenWithClassName is not a function ice-extras.js (line 4774) [Break on this error] var _432=_42d.handle?Element.childrenWithClassName(e,_42d.handle) [0] :e;
        Hide
        yip.ng added a comment -

        It seems the addition of the handle attribute generates JavaScript that makes calls to the scriptaculous function Element.childrenWithClassName(), which may not exist anymore. Some people reported on the web that this happened when moving from scriptaculous v1.6.4 to v1.6.5. Some suggested using the function getElementsByClassName() instead.

        JavaScript generated without handle attribute:
        Sortable.create(...,{containment:false,...);

        JavaScript generated without handle attribute:
        Sortable.create(...,{handle:'starttitle',containment:false,...);

        Show
        yip.ng added a comment - It seems the addition of the handle attribute generates JavaScript that makes calls to the scriptaculous function Element.childrenWithClassName(), which may not exist anymore. Some people reported on the web that this happened when moving from scriptaculous v1.6.4 to v1.6.5. Some suggested using the function getElementsByClassName() instead. JavaScript generated without handle attribute: Sortable.create(...,{containment:false,...); JavaScript generated without handle attribute: Sortable.create(...,{handle:'starttitle',containment:false,...);
        Hide
        yip.ng added a comment -

        Last line of previous comment should be JavaScript generated WITH the handle attribute.

        Show
        yip.ng added a comment - Last line of previous comment should be JavaScript generated WITH the handle attribute.
        Hide
        yip.ng added a comment -

        Replaced childrenWithClassName() with getElementsByClassName().

        Show
        yip.ng added a comment - Replaced childrenWithClassName() with getElementsByClassName().

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: