Skip to content

fix(ui): pqselect enabled not loaded every time it is needed#768

Merged
btry merged 1 commit intopluginsGLPI:developfrom
btry:feature/fix_pqselect_load
Oct 13, 2017
Merged

fix(ui): pqselect enabled not loaded every time it is needed#768
btry merged 1 commit intopluginsGLPI:developfrom
btry:feature/fix_pqselect_load

Conversation

@btry
Copy link
Collaborator

@btry btry commented Oct 3, 2017

simplify code

ensure pqselect is loaded when a HTML page is loaded as well as when a tab is loaded.

Repairs the UI issue on validator user / group components

@btry btry added the bug label Oct 3, 2017
@btry btry added this to the 2.6.0 milestone Oct 3, 2017
@btry btry self-assigned this Oct 3, 2017
document.getElementById("validators_users").style.display = "none";
document.getElementById("validators_groups").style.display = "none";
}
fcInitMultiSelect();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is useless to init pqselect here

// initialize the pqSelect widget.
fcInitMultiSelect();

$('#tabspanel + div.ui-tabs').on("tabsload", function( event, ui ) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving the event handler out of fcInitMultiSelect() because the implemetation does not fully match the name of the function.

@btry btry modified the milestones: 2.6.0, 2.6.1 Oct 13, 2017
@btry btry requested a review from orthagh October 13, 2017 08:51
@btry btry merged commit 22f3508 into pluginsGLPI:develop Oct 13, 2017
@btry btry deleted the feature/fix_pqselect_load branch October 13, 2017 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants