Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 13, 2017

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
@@ -451,7 +451,6 @@ public function showForm($ID, $options=[]) {
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

// === Add better multi-select on form configuration validators ===
// 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.

2 participants