Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-34191

submit called twice in Blueprint wizard

    XMLWordPrintable

Details

    Description

      In a custom blueprint plugin, if the user uses the tab key to choose the "Next" button on a blueprint wizard page and then the enter key to submit, the submit function registered on the wizard will be called twice.

      For example, in the following function:

      wizard.on('submit.registerPage1', function (e, state)

      { alert("TEST"); .... }

      );

      the "TEST" alert will be shown twice.

      This also results in functions being called twice on the next page of the blueprint: for example 'post-render.registerPage2' will be called twice. This also has the odd behaviour of duplicating the following page - if the "back" button is pushed, the blueprint wizard will move backwards to the first of the two duplicated pages.

      This can obviously be avoided, but is confusing behaviour from a user's standpoint.

      Attachments

        Activity

          People

            Unassigned Unassigned
            167dcf6b5969 Andrew Lensen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: