Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

✨ Upgraded member select dropdowns to choices.js #28

Merged
merged 4 commits into from
Apr 1, 2017

Conversation

therebelrobot
Copy link
Contributor

This is to fix the "members dropdown is way too long" issue. This adds both a truncated box and a search box for select menus.

This removed the images in the dropdown, but I think the added functionality outweighs that minor piece of sugar.

screenshot:

cc @pltaylor

views/layout.pug Outdated
@@ -10,6 +10,7 @@ html
link(rel='stylesheet', href='/admin/css/vendors/bootstrap.css')
link(rel='stylesheet', href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/5.0.0/bootstrap-social.min.css")
link(rel='stylesheet', href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-daterangepicker/2.1.24/daterangepicker.css")
link(rel='stylesheet', href='https://rawgit.com/jshjohnson/Choices/7255fa42ceb89e74f6b0b03d4868e6fec9162e39/assets/styles/css/choices.css')
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be local? Or at least a cdn?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rawgit is a cdn, though you're right, i'm using the limited development link. will update to the production one.

//- }
//- }
//- $('.leads-select').multiselect(teamSelectSettings)
//- $('.members-select').multiselect(teamSelectSettings)
Copy link
Contributor

Choose a reason for hiding this comment

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

Gonna call out the commenting of code :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

word, removing.

@therebelrobot
Copy link
Contributor Author

@pltaylor this should be good for another pass.

@therebelrobot therebelrobot merged commit 3d045c9 into master Apr 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants