Skip to Content Skip to Menu

Display CB list on Cancel

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 8 months ago #258444 by chanteur94
Display CB list on Cancel was created by chanteur94
Hi

When I use CB 'filter' list , I have 2 possibilities ; Submit or Cancel

On Submit, no problem, the list display from the beginning.

On Cancel, dsplay list stay on his position instead of go back beginning.

How to correct that ?

TX

Joomla 3.3.6 CB 2.0.5

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 8 months ago #258508 by krileon
Replied by krileon on topic Display CB list on Cancel
Cancel just collapses the criteria display. Click "List All" to reset the userlist.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 8 months ago #258514 by chanteur94
Replied by chanteur94 on topic Display CB list on Cancel

krileon wrote: Cancel just collapses the criteria display. Click "List All" to reset the userlist.

I know that ...
The problem is when i collapse the criteria display using 'Cancel Button' , i arrive in the middle of my previous list and not at the beginning of the list...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 8 months ago #258542 by krileon
Replied by krileon on topic Display CB list on Cancel
Correct, it does not force scroll to the top of the list. You can use the onBeforeDisplayUsersList trigger in CB Auto Actions with a Code action and Method set to jQuery then bind to the cancel button click to add your own custom behavior if you want it to scroll, close faster, etc..


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
9 years 8 months ago - 9 years 8 months ago #258649 by chanteur94
Replied by chanteur94 on topic Display CB list on Cancel
Don't you think that it's not the normal way.
Hope CB 2.0.6 will correct this.

In the meantime I'm not a big developer : can you help me for the code ?

Tx
Last edit: 9 years 8 months ago by chanteur94.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8283
  • Karma: 1443
9 years 8 months ago #258709 by krileon
Replied by krileon on topic Display CB list on Cancel
It's perfectly normal. Browser scroll hijacking is bad practice. It's fine to have custom DIV scroll behavior, but taking over parent window scrolling is a bad idea. In order for smooth scrolling a jQuery solution is needed (which we have), but as it's not instant the user could end up fighting the code. Instant jump to the top causes a scroll jump and is very jarring for the enduser. The final solution is to just leave it alone, which is what we opted for. Neither solution is perfect and they all have their downsides, but I believe we've picked the most user friendly.

In the meantime I'm not a big developer : can you help me for the code ?

No, we do not provide custom coding solutions; please see my signature regarding this.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum