-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi António,

There are 2 places where you will need to change the default value.

requests.php -> newReservationHTML
* search for "durationChange" to find the following:
   $h .= selectInputHTML('length', $lengths, 'reqlength',
                         "onChange='updateWaitTime(0); setEndDuration(); 
durationChange();'", 60);
* change the 60 at the end to the number of minutes in the new default (120 
for 2 hours)

requests.js -> selectResType
* search for durationchanged to find the following lines:
     if(! durationchanged)
         dojo.byId('reqlength').value = 60;
* change the 60 to the same number you used in newReservationHTML (120 for 2 
hours)

Josh

On Thursday, September 26, 2019 10:22:05 AM EDT António Aragão wrote:
> Hi,
> 
> does anyone knows where I can change the initial time reservation from 1
> hour to 2 hours.
> 
> Thanks.

- -- 
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQRMIdRtWXideTZDK31X8tBw1209AwUCXYzQ5QAKCRBX8tBw1209
A210AJ4itbEufmQOEYkpQZ6ifJKlQcNdUQCbBg/5nROvXyZnV7tf1o4ZdG1kd0w=
=fKbA
-----END PGP SIGNATURE-----



Reply via email to