-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ajaxify user list for files external #8507
Conversation
tested 👍 |
OCP\Util::addStyle('files_external', '../3rdparty/select2/select2'); | ||
|
||
//OCP\Util::addscript('3rdparty', 'chosen/chosen.jquery.min'); | ||
//OCP\Util::addStyle('3rdparty', 'chosen/chosen'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remoeve the commented out code ?
@owncloud/designers the list might need a few styling tweaks (could be done after the merge) |
A few more issues:
|
@@ -42,6 +42,11 @@ | |||
} else { | |||
$pattern = ''; | |||
} | |||
if (isset($_GET['filter']) && !empty($_GET['filter'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use pattern instead of filter in the ajax call, avoids the duplication here
Yet not exactly where it is triggered, but when opening admin page still every user is pulled. |
|
|
Atm, I don't know how to avoid the repeated and chaotic display of "Users" and "Groups" sections, select2 does not give any possibilities on this, at least it did not find it yet. Maybe when i spent more time on this … another issue would be that results could be inserted on the top while you scrolled down. So even if this screams to be ugly, it is for now probably the better method in fact. With a bigger set of users I expect the admin to do a search over users instead of scrolling down endlessly. @jancborchardt what do you think? |
Having in mind what was said above, it probably makes most sense to first read users, then groups… this is what i switched to now.
|
7442110
to
6bbf8ad
Compare
@PVince81 @blizzz @DeepDiver1975 I rebased and simplified the select dropdown. Would be awesome if this would make it into 7.0.2, as it fixes #7499. @jancborchardt Users are shown with their avatar, groups use the contacts icon. @karlitschek @craigpg I tried to do this the old way so backporting should be easy. stable7? stable6? |
Oh, and this needs #10591 to actually work ... |
@LukasReschke much better! |
@blizzz displayname is no longer 'searched'. Can I have your 👍 ? |
…tion for files_external, fixes #7499 remove minified select2 js show avatars for users, simpler results remove unneeded users and groups from settings template fix css, escape user and group names
63d7c00
to
f33312f
Compare
A new inspection was created. |
rebased because #10591 was merged |
🚀 Test Passed. 🚀 |
now this one looks great! Thank you @butonic 👍 |
…ternal Ajaxify user list for files external
What about backports? I think at least stable7 should profit. @karlitschek |
yes. backport is definitely needed. |
replaces chosen with select2, fixes #7499
@DeepDiver1975 @blizzz @PVince81 please review