Subversion Repositories DevTools

Rev

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

Rev 133 Rev 151
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[1].checked;
168
      var isAutobuild = typeButtons[0].checked;
169
 
169
 
170
      document.MM_returnValue = MM_ValidateVersion(null, versionBase, versionExt, isAutobuild, is_patch == "Y");
170
      document.MM_returnValue = MM_ValidateVersion(null, versionBase, versionExt, isAutobuild, is_patch == "Y");
171
 
171
 
172
      return document.MM_returnValue;
172
      return document.MM_returnValue;
173
   }
173
   }
Line 179... Line 179...
179
 
179
 
180
 
180
 
181
      if (buildType == "M")
181
      if (buildType == "M")
182
      {
182
      {
183
         Visible ('divVersionNumber','inline', 'divAutoVersion','none');
183
         Visible ('divVersionNumber','inline', 'divAutoVersion','none');
184
         typeButtons[0].checked = true;
184
         typeButtons[1].checked = true;
185
         addCots();
185
         addCots();
186
      }
186
      }
187
      else if (buildType == "A")
187
      else if (buildType == "A")
188
      {
188
      {
189
         Visible ('divVersionNumber','none', 'divAutoVersion','inline');
189
         Visible ('divVersionNumber','none', 'divAutoVersion','inline');
190
         typeButtons[1].checked = true;
190
         typeButtons[0].checked = true;
191
         removeCots();
191
         removeCots();
192
      }
192
      }
193
   }
193
   }
194
 
194
 
195
   // Add .cots extension to the list of extensions as it's not included in the intial query results.
195
   // Add .cots extension to the list of extensions as it's not included in the intial query results.
Line 269... Line 269...
269
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
269
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
270
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
270
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
271
            <tr>
271
            <tr>
272
               <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
272
               <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
273
               <td width="1%" nowrap class="form_group" valign="bottom"></td>
273
               <td width="1%" nowrap class="form_group" valign="bottom"></td>
274
               <td nowrap width="100%"></td>
274
               <td width="100%" nowrap></td>
275
            </tr>
275
            </tr>
276
            <tr>
276
            <tr>
277
               <td width="1%">&nbsp;</td>
277
               <td width="1%">&nbsp;</td>
278
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
278
               <td width="1%"   nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Package</td>
279
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objPkgInfo.Item("pkg_name")%></td>
279
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objPkgInfo.Item("pkg_name")%></td>
280
            </tr>
280
            </tr>
281
            <tr>
281
            <tr>
282
               <td>&nbsp;</td>
282
               <td width="1%">&nbsp;</td>
283
               <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">&nbsp;</td>
283
               <td width="1%"   nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version Number Assignment</td>
284
               <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
284
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
285
                  <input name="build_type" type="radio" value="M" onclick="configurePage('M')"> Manual Build
-
 
286
                  <%
285
                  <%
287
                  ' Patches are never auto-built so tell user this if they try to make them so and make sure Manual
286
                  ' Patches are never auto-built so tell user this if they try to make them so and make sure Manual
288
                  ' build_type value of the radio button is checked afterwards.
287
                  ' build_type value of the radio button is checked afterwards.
289
                  If objPkgInfo("is_patch") = "Y" Then%>
288
                  If objPkgInfo("is_patch") = "Y" Then%>
290
                     <input name="build_type" type="radio" value="A" onclick="alert('Patches must only use a manual build type'); document.renameversion.build_type[0].click()"> Automated Build
289
                     <input name="build_type" type="radio" value="A" onclick="alert('Patches must be manually versioned'); document.renameversion.build_type[1].click()">Auto
291
                  <%Else%>
290
                  <%Else%>
292
                     <input name="build_type" type="radio" value="A" onclick="configurePage('A')"> Automated Build
291
                     <input name="build_type" type="radio" value="A" onclick="configurePage('A')">Auto
293
                  <%End If%>
292
                  <%End If%>
-
 
293
                  <input name="build_type" type="radio" value="M" onclick="configurePage('M')">Manual
294
               </td>
294
               </td>
295
            </tr>
295
            </tr>
296
            <tr>
296
            <tr>
297
               <td>&nbsp;</td>
297
               <td>&nbsp;</td>
298
               <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version</td>
298
               <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version</td>