Author: jfthomps
Date: Fri Sep 12 19:30:09 2014
New Revision: 1624623

URL: http://svn.apache.org/r1624623
Log:
VCL-780 - combine new reservation and current reservations pages

requests.js: modified selectResType: added to conditional that shows server 
profile list for server reservations that keeps it hidden if the only item in 
the server profile store is the "New Profile" item

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=1624623&r1=1624622&r2=1624623&view=diff
==============================================================================
--- vcl/trunk/web/js/requests.js (original)
+++ vcl/trunk/web/js/requests.js Fri Sep 12 19:30:09 2014
@@ -204,7 +204,9 @@ function selectResType() {
                dojo.addClass('limitstart', 'hidden');
                dojo.addClass('durationend', 'hidden');
                dojo.removeClass('whentitleserver', 'hidden');
-               if(profilesstore._arrayOfAllItems.length != 0)
+               if(profilesstore._arrayOfAllItems.length != 0 &&
+                  (profilesstore._arrayOfAllItems.length != 1 ||
+                  profilesstore._arrayOfAllItems[0].name != '(New Profile)'))
                        dojo.removeClass('deployprofileslist', 'hidden');
                dojo.removeClass('nrnamespan', 'hidden');
                dojo.removeClass('nrservergroupspan', 'hidden');


Reply via email to