Author: jfthomps
Date: Fri Mar 13 16:18:21 2015
New Revision: 1666497

URL: http://svn.apache.org/r1666497
Log:
VCL-178 - enable checkuser flag for per reservation instead of image only

requests.js: modified selectResType: only show "Disable timeout for 
disconnected users" for basic reservations; previously it was shown for basic 
and imaging reservations; imaging reservations are not timed out when users are 
disconnected. So, having this option for them didn't make sense.

Modified:
    vcl/trunk/web/js/requests.js

Modified: vcl/trunk/web/js/requests.js
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/js/requests.js?rev=1666497&r1=1666496&r2=1666497&view=diff
==============================================================================
--- vcl/trunk/web/js/requests.js (original)
+++ vcl/trunk/web/js/requests.js Fri Mar 13 16:18:21 2015
@@ -150,8 +150,6 @@ function selectResType() {
                //dojo.addClass('nrmacaddrspan', 'hidden');
                //dojo.addClass('nrmonitoredspan', 'hidden');
                dojo.addClass('nrfixedipdiv2', 'hidden');
-               if(dijit.byId('nousercheck'))
-                       dojo.removeClass('nousercheckspan', 'hidden');
                dojo.addClass('anystart', 'hidden');
                dojo.addClass('indefiniteend', 'hidden');
                //hideDijitButton('newResDlgShowConfigBtn'); // finishconfigs
@@ -172,6 +170,8 @@ function selectResType() {
        if(dojo.byId('basicrdo').checked) {
                dijit.byId('deployimage').set('query', {basic: 1, checkout: 1});
                checkSelectedInList();
+               if(dijit.byId('nousercheck'))
+                       dojo.removeClass('nousercheckspan', 'hidden');
                var imageid = getSelectValue('deployimage');
                var item = dijit.byId('deployimage').get('item');
                var max = imagestore.getValue(item, 'maxinitialtime');
@@ -190,6 +190,8 @@ function selectResType() {
                setMaxRequestLength(maximaging);
                dojo.removeClass('whentitleimaging', 'hidden');
                dojo.addClass('whentitlebasic', 'hidden');
+               if(dijit.byId('nousercheck'))
+                       dojo.addClass('nousercheckspan', 'hidden');
                if(! durationchanged)
                        dojo.byId('reqlength').value = 480;
        }


Reply via email to