Form Hudson-behaviour not extensible

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Patch
    • Resolution: Fixed
    • Priority: Major
    • Component/s: core
    • Environment:
      Chrome (but other browsers should behave the same ... I think)

      In hudson-behavior.js <form> elements behavior is not extensible.

      • form.onsubmit handler doesn't take into account the fact the form could have a "onsubmit" attribute (it always overrides it with the call of buildFormTree())
      • Element.hasClassName() call will never return true since "form" variable is not passed to that call !

      For my global-build-stats plugin, I need to create "home made" form with a onsubmit handler.
      Hudson behaviour systematically overrides my onsubmit attribute with its behaviour.
      => I'd like hudson behavior to "add" (and not "override") its behavior to the existing form behavior

      I submitted a patch to the hudson-behavior 28557 revision.

            Assignee:
            Alan Harder
            Reporter:
            Frédéric Camblor
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: