Default pop up window size

Moderator: crythias

Locked
ptay
Znuny newbie
Posts: 85
Joined: 13 Jul 2010, 18:55
Znuny Version: 5.0.10

Default pop up window size

Post by ptay »

Anyone know where I could change the default window size (height / width) that pops up when you are zoomed in on ticket and close it? When you select close a pop up window...well..pops up. :) I'd like to make it taller so Agents don't have to scroll down just a bit each time to submit.
Test:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Re: Default pop up window size

Post by Mothra »

The default window size is defined in $OTRS_HOME/var/httpd/htdocs/js/Core.UI.Popup.js. Just add a new Popup Profile in there with your desired settings and then restart OTRS.

Now, wherever you want to implement this (and it's most likely going to be in a DTL that you have customised in a theme), make sure the 3rd parameter passed into Core.UI.Popup.OpenPopup() is the name of your new profile.

EDIT: A caveat to this is that when you update OTRS, Core.UI.Popup.js will probably be overwritten and you will lose your custom popup profile.
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
dama
Znuny newbie
Posts: 8
Joined: 19 May 2011, 17:07
Znuny Version: 3.0.7

Re: Default pop up window size

Post by dama »

what should i add to get it full screen ?
RodrigoPetter
Znuny newbie
Posts: 51
Joined: 10 Aug 2015, 20:02
Znuny Version: 5.0.0

Re: Default pop up window size

Post by RodrigoPetter »

In

Code: Select all

PopupProfiles = {
        'Default': {
            WindowURLParams: "dependent=yes,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no",
            Left: 100,
            Top: 100,
            Width: 1040,
            Height: screen.height
        }
    };
Just change the default profile if you don't care remake it every time you update your OTRS version.
Locked