Skip to content

Commit

Permalink
[BUGFIX] Selected workspace must have a check mark in front (refs #14…
Browse files Browse the repository at this point in the history
…688)
  • Loading branch information
lorenzulrich committed Apr 13, 2018
1 parent 0ce063a commit 8f921e8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ define([
}
};

/**
* Override containerSelector of parent class because it is used to check the correct workspace on change
* @type {string}
*/
WorkspacesMenu.options.containerSelector = '#visol-workspacepreview-backend-toolbaritems-workspaceselectortoolbaritem';

/**
* registers event listeners
*/
Expand All @@ -48,7 +54,6 @@ define([

// observe all clicks on workspace links in the menu
$(WorkspacesMenuOverride.options.containerSelector).on('click', WorkspacesMenu.options.menuItemSelector, function(evt) {
console.log('click');
evt.preventDefault();
WorkspacesMenu.switchWorkspace($(this).data('workspaceid'));
});
Expand Down

0 comments on commit 8f921e8

Please sign in to comment.