Application Navigator js error prevents all handlers after that from running

XMLWordPrintable

    • 6.03

      If there are links configured to show in the app switcher, on every page load, the following lines will fail.

      this.updateDropdown = function (data) {
                  $(function () {
                   that.getDropdown().html(navlinks.templates.appswitcher_old.applications({
                          apps: data,
                          showAdminLink: NL.isUserAdmin,
                          adminLink: ADMIN_EDIT_PATH
                      }));
      
                      that.bindAnalyticsHandlers(that.getDropdown(), data); // this one fails:Uncaught TypeError: undefined is not a function 
                      that.processSuggestionApps(data);
                  });
              };
      

      snippet from com.atlassian.plugins.atlassian-nav-links-plugin:rotp-menu/appswitcher_old.js lines 26-37.

      Now the problem is that because it fails inside a document.ready handler, none of handlers added after this one will run, so any plugin that has a handler registered for document.ready after the app switcher does it job will not work if there are any links configured in the Application Navigator.

        1. fail-1.0-SNAPSHOT.jar
          203 kB
          FlorinM
        2. agile_error.PNG
          62 kB
          FlorinM

            Assignee:
            Unassigned
            Reporter:
            FlorinM
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: