Subversion Repositories DevTools

Rev

Rev 1326 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1326 Rev 3959
Line 163... Line 163...
163
 
163
 
164
      var exts = document.getElementsByName('v_ext')[0]
164
      var exts = document.getElementsByName('v_ext')[0]
165
      var versionExt =  exts.options[exts.options.selectedIndex].value
165
      var versionExt =  exts.options[exts.options.selectedIndex].value
166
 
166
 
167
      var typeButtons = document.getElementsByName('build_type');
167
      var typeButtons = document.getElementsByName('build_type');
168
      var isAutobuild = typeButtons[0].checked;
168
      var isAutobuild = typeButtons[0].checked || false;
169
 
-
 
170
      document.MM_returnValue = MM_ValidateVersion(null, versionBase, versionExt, isAutobuild, is_patch == "Y");
-
 
171
 
169
 
-
 
170
      MM_validateForm({vBase:versionBase, vExt:versionExt, isAuto:isAutobuild, isPatch:is_patch == "Y"},'Version Number','RisVersionNumber');
172
      return document.MM_returnValue;
171
      return document.MM_returnValue;
173
   }
172
   }
174
 
173
 
175
   // Change the elements displayed on the page depending on the build type selected.
174
   // Change the elements displayed on the page depending on the build type selected.
176
   function configurePage(buildType)
175
   function configurePage(buildType)
Line 190... Line 189...
190
         typeButtons[0].checked = true;
189
         typeButtons[0].checked = true;
191
         hideCots();
190
         hideCots();
192
      }
191
      }
193
   }
192
   }
194
 
193
 
195
   // Show the .cots extension. It's not included in the intial query results.
194
   // Show the .cots/.tool extension. It's not included in the intial query results.
-
 
195
   // Show extensions that are Allowed in Manual mode
196
   function showCots()
196
   function showCots()
197
   {
197
   {
198
      var exts = document.getElementsByName('v_ext')[0];
198
      var exts = document.getElementsByName('v_ext')[0];
199
 
199
 
200
      for (index = 0; index < exts.length; index++)
200
      for (index = 0; index < exts.length; index++)
201
      {
201
      {
202
         if (exts.options[index].value == '.cots')
202
         if (exts.options[index].getAttribute("isCOTS") == "Y")
203
         {
203
         {
204
            exts.options[index].style.display = "inline";
204
            exts.options[index].style.display = "inline";
205
            exts.options[index].disabled=false;
205
            exts.options[index].disabled=false;
206
         }
206
         }
207
      }
207
      }
208
   }
208
   }
209
 
209
 
210
   // Hide the .cots extension from the list of extensions.
210
   // Hide the .cots/.tool extension from the list of extensions.
-
 
211
   // Hide extensions that are not allowed in AUTO mode
211
   // IE does not honor .style.display - so just disable it.
212
   // IE does not honor .style.display - so just disable it.
212
   function hideCots()
213
   function hideCots()
213
   {
214
   {
214
      var exts = document.getElementsByName('v_ext')[0];
215
      var exts = document.getElementsByName('v_ext')[0];
215
 
216
 
216
      for (index = 0; index < exts.length; index++)
217
      for (index = 0; index < exts.length; index++)
217
      {
218
      {
218
         if (exts.options[index].value == '.cots')
219
         if (exts.options[index].getAttribute("isCOTS") == "Y")
219
         {
220
         {
220
            exts.options[index].style.display = "none";
221
            exts.options[index].style.display = "none";
221
            exts.options[index].disabled=true;
222
            exts.options[index].disabled=true;
222
         }
223
         }
223
      }
224
      }