Dropdown list without scroller

Moderator: crythias

Locked
mantyyzz
Znuny newbie
Posts: 19
Joined: 04 Jul 2014, 12:38
Znuny Version: 3.1.15

Dropdown list without scroller

Post by mantyyzz »

Hi everyone. Is there possible to make queue mover dropdownlist to show full list without vertical scrollbar ?

I attached photo.
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Dropdown list without scroller

Post by reneeb »

Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
mantyyzz
Znuny newbie
Posts: 19
Joined: 04 Jul 2014, 12:38
Znuny Version: 3.1.15

Re: Dropdown list without scroller

Post by mantyyzz »

Thanks for your answer :) but where could I find file that contains that dropdown list code ?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Dropdown list without scroller

Post by reneeb »

That is created dynamically with the method BuildSelection in Kernel/Output/HTML/Layout.pm
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
mantyyzz
Znuny newbie
Posts: 19
Joined: 04 Jul 2014, 12:38
Znuny Version: 3.1.15

Re: Dropdown list without scroller

Post by mantyyzz »

I found that method, but i don't know what to do next. Could you help to write needed code ?

As I said I need that drop down list show full list or for example to be 30 elements size? How to do this ?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dropdown list without scroller

Post by crythias »

var el = document.getElementById("selectId");
el.size = el.length;
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mantyyzz
Znuny newbie
Posts: 19
Joined: 04 Jul 2014, 12:38
Znuny Version: 3.1.15

Re: Dropdown list without scroller

Post by mantyyzz »

In what place I have to add this line ? I mean in which file and in which place in that file ?

Thanks for you help!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Dropdown list without scroller

Post by crythias »

It's javascript, so you should put it in appropriate <script> markup (look up a tutorial) and on the DTL that contains the screen code that you see. View Source/Inspect Element helps, grep helps, etc.


This is not something that will survive updates and probably should be handled in a better way. Note that forcing a lengthy list is bad user experience and making it scroll off a screen, especially a low horizontal resolution laptop screen, doesn't help matters. Your queues should reflect groups of agents that can handle specific tasks. You should keep your queues short and your services long.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked