fix typo, improve javascript
authorEugene.Petrenko <eugene.petrenko@gmail.com>
Mon, 22 Aug 2011 19:26:51 +0000 (21:26 +0200)
committerEugene.Petrenko <eugene.petrenko@gmail.com>
Mon, 22 Aug 2011 19:26:51 +0000 (21:26 +0200)
nuget-server/resources/tool/runnerSettings.jsp

index bca899749e2e15743bbe87ad89703a0ebde451d9..c8e040594cdcd94398cc65ccbbe594ec1a4c11c7 100644 (file)
@@ -41,7 +41,7 @@
   <props:option value="custom" selected="${not hasSelected}">Custom</props:option>\r
 </props:selectProperty>\r
 <span class="smallNote">Specify NuGet.exe version.\r
-  Check intalled NuGet Commandline tools in <a href="<c:url value="${settingsUrl}"/>">NuGet Settings</a>\r
+  Check installed NuGet Commandline tools in <a href="<c:url value="${settingsUrl}"/>">NuGet Settings</a>\r
 </span>\r
 \r
 <div id="customPathContainer">\r
         BS.Util.show($('customPathContainer'));\r
       } else {\r
         this.setValue("");\r
+        BS.Util.hide($('customPathContainer'));\r
       }\r
       BS.MultilineProperties.updateVisible();\r
     },\r
     customPathChanged : function() {\r
       $('${name}').value = $('nugetCustomPath').value;\r
+      var selected = $('nugetPathSelector').value;\r
+      if (selected != "custom") {\r
+        $('nugetPathSelector').value = "custom";\r
+      }\r
     }\r
   };\r
 \r