You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@vcl.apache.org by António Aragão <aa...@di.uminho.pt> on 2019/09/26 14:22:05 UTC

Hint

Hi,

does anyone knows where I can change the initial time reservation from 1
hour to 2 hours.

Thanks.

-- 
António Aragão
(Especialista de Informática)
Universidade do Minho
Departamento de Informática
Edificio 7 - 1.07 (DI-1.03)
Campus de Gualtar
Braga
Telefone: +351 253 6044 86

Re: Hint

Posted by António Aragão <aa...@di.uminho.pt>.
Hi Josh,

was the reload. :-)

Thanks.

Josh Thompson <jo...@ncsu.edu> escreveu no dia segunda, 30/09/2019
à(s) 13:59:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi António,
>
> Make sure your browser has loaded the modified requests.js file.  You can
> hold
> down the Shift key and click the reload button in your browser with your
> mouse
> to force it to load all javascript files again.  Also, you can open your
> browser's javascript debugger and find where it lists the source files to
> see
> if you see the changed value in requests.js.
>
> One other thing to check - there are 2 similar blocks in requests.js, one
> for
> normal reservations and one for imaging reservations.  The first block is
> the
> one you need to change.  In the original code, that one would have had a
> value
> of 60.  The block for imaging reservations would have had an initial value
> of
> 480.
>
> Josh
>
> On Monday, September 30, 2019 6:25:06 AM EDT António Aragão wrote:
> > Hi Josh,
> >
> > it doesn't change the time, any clue ?
> >
> > Thanks.
> >
> > Josh Thompson <jo...@ncsu.edu> escreveu no dia quinta,
> 26/09/2019
> >
> > à(s) 15:54:
> > >
> > > 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.
> - --
> - -------------------------------
> 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-----
>
> iF0EARECAB0WIQRMIdRtWXideTZDK31X8tBw1209AwUCXZH7zAAKCRBX8tBw1209
> A+TOAJ9TZOWcswRpdZr3MfYQm9pXjyZIFACdHvul9+/uyX303QE+lCz4clovgoI=
> =bgUM
> -----END PGP SIGNATURE-----
>
>
>
>

-- 
António Aragão
(Especialista de Informática)
Universidade do Minho
Departamento de Informática
Edificio 7 - 1.07 (DI-1.03)
Campus de Gualtar
Braga
Telefone: +351 253 6044 86

Re: Hint

Posted by Josh Thompson <jo...@ncsu.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi António,

Make sure your browser has loaded the modified requests.js file.  You can hold 
down the Shift key and click the reload button in your browser with your mouse 
to force it to load all javascript files again.  Also, you can open your 
browser's javascript debugger and find where it lists the source files to see 
if you see the changed value in requests.js.

One other thing to check - there are 2 similar blocks in requests.js, one for 
normal reservations and one for imaging reservations.  The first block is the 
one you need to change.  In the original code, that one would have had a value 
of 60.  The block for imaging reservations would have had an initial value of 
480.

Josh

On Monday, September 30, 2019 6:25:06 AM EDT António Aragão wrote:
> Hi Josh,
> 
> it doesn't change the time, any clue ?
> 
> Thanks.
> 
> Josh Thompson <jo...@ncsu.edu> escreveu no dia quinta, 26/09/2019
> 
> à(s) 15:54:
> > 
> > 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.
- -- 
- -------------------------------
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-----

iF0EARECAB0WIQRMIdRtWXideTZDK31X8tBw1209AwUCXZH7zAAKCRBX8tBw1209
A+TOAJ9TZOWcswRpdZr3MfYQm9pXjyZIFACdHvul9+/uyX303QE+lCz4clovgoI=
=bgUM
-----END PGP SIGNATURE-----




Re: Hint

Posted by António Aragão <aa...@di.uminho.pt>.
Hi Josh,

it doesn't change the time, any clue ?

Thanks.

Josh Thompson <jo...@ncsu.edu> escreveu no dia quinta, 26/09/2019
à(s) 15:54:

> -----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-----
>
>
>
>

-- 
António Aragão
(Especialista de Informática)
Universidade do Minho
Departamento de Informática
Edificio 7 - 1.07 (DI-1.03)
Campus de Gualtar
Braga
Telefone: +351 253 6044 86

Re: Hint

Posted by Josh Thompson <jo...@ncsu.edu>.
-----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-----