mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #300] message selection on quarantine page not detecting change in shift status #285
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/300
Originally assigned to: @tonioo on GitHub.
Originally created by Louis-Dominique Dubeau on 2012-09-04T00:53:57Z
Modoboa version: 0.9.2
Firefox version: 14.0.1
Steps to reproduce:
Actual result: All messages above the middle message are selected. That is, the list behaves as if shift were still pressed.
Expected results: The only thing selected after step 4 should be the message you clicked on.
Observations: I am not sure what is going on but I put breakpoints on the keyup and keydown methods in jquery.htmltable.js and found that while keydown is executed, keyup is not. So it seems that the shift_pressed variable is not reset when shift is released.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-09-04T19:46:31Z
Hi,
actually this behaviour is intentional... I know this is not common but if I don't implement it like that, you can't unselect all messages, you still remain with at least one selected message.
This issue could be solved by adding checkboxes in front of each message to allow the selection... (like Gmail for example).
Am I clear?
Antoine
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Louis-Dominique Dubeau on 2012-09-04T21:02:38Z
Antoine,
I understand what you are saying but the problem is that the selection behavior demonstrated in Modoboa is confusing. The following page gives a good example of how multiple selection normally work. I believe it behaves the same on Linux, OS X and Windows but I could be wrong because I use Windows only rarely and almost never use OS X.
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select_multiple
On that page here is the behavior I see in Firefox 15.0 on Ubuntu 12.04.1:
A check box on the side would indeed be a welcome addition. For one thing it would make it easier to know when an item is selected. I find myself having a hard time knowing at a glance what it is I have selected because the grey background of selected items is rather subtle. Another nice addition would be some function at the top of the list to select or unselect all items.
Thanks,
Louis
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-09-05T07:38:00Z
Louis-Dominique Dubeau wrote:
I'll implement this common mechanism soon.
In addition to the checkbox, I'll use the simple click event to open a given message. No more double click.
Your proposal about a way to select/unselect all messages is also a good one. Maybe I could add an entry into the Content class menu?
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Louis-Dominique Dubeau on 2012-09-05T12:41:27Z
Antoine Nguyen wrote:
Great!
Ah... you know what? I did not understand what the "Content Class" menu was supposed to do. I tried it before but I just did not get it. Maybe I had already selected everything and thus I failed to change anything when I selected "Spam" in that menu. I thought it worked like the search field next to it. That is, it would display only those messages that are of the chosen class. Now I realize after trying it again that it affect selection. I would rename "Content Class" something like "Select..." There's already a "Nothing" item which should be changed to "None". (Although "Nothing" is not impossible, it does not seem to me as idiomatic as "None", as in "none of the items in the list".) An "All" item could be added for selecting everything.
In the long run, I think a model for inspiration regarding user management of the quarantine is Maia Mailguard. I've used it for many years but I recently changed hosting companies, and decided Maia had downsides I did not want to live with (namely, it has its own special amavis daemon). I mean to open a feature request here regarding the idea of taking inspiration from Maia but have not done so yet.
Thanks,
Louis
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-09-05T14:43:19Z
Louis-Dominique Dubeau wrote:
Antoine