You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2014/09/12 21:30:09 UTC

svn commit: r1624623 - /vcl/trunk/web/js/requests.js

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');