Subversion Repositories DevTools

Rev

Rev 1324 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1324 Rev 3867
Line 190... Line 190...
190
         typeButtons[0].checked = true;
190
         typeButtons[0].checked = true;
191
         hideCots();
191
         hideCots();
192
      }
192
      }
193
   }
193
   }
194
 
194
 
195
   // Show the .cots extension. It's not included in the intial query results.
195
   // Show the .cots/.tool extension. It's not included in the intial query results.
-
 
196
   // Show extensions that are Allowed in Manual mode
196
   function showCots()
197
   function showCots()
197
   {
198
   {
198
      var exts = document.getElementsByName('v_ext')[0];
199
      var exts = document.getElementsByName('v_ext')[0];
199
 
200
 
200
      for (index = 0; index < exts.length; index++)
201
      for (index = 0; index < exts.length; index++)
201
      {
202
      {
202
         if (exts.options[index].value == '.cots')
203
         if (exts.options[index].getAttribute("isCOTS") == "Y")
203
         {
204
         {
204
            exts.options[index].style.display = "inline";
205
            exts.options[index].style.display = "inline";
205
            exts.options[index].disabled=false;
206
            exts.options[index].disabled=false;
206
         }
207
         }
207
      }
208
      }
208
   }
209
   }
209
 
210
 
210
   // Hide the .cots extension from the list of extensions.
211
   // Hide the .cots/.tool extension from the list of extensions.
-
 
212
   // Hide extensions that are not allowed in AUTO mode
211
   // IE does not honor .style.display - so just disable it.
213
   // IE does not honor .style.display - so just disable it.
212
   function hideCots()
214
   function hideCots()
213
   {
215
   {
214
      var exts = document.getElementsByName('v_ext')[0];
216
      var exts = document.getElementsByName('v_ext')[0];
215
 
217
 
216
      for (index = 0; index < exts.length; index++)
218
      for (index = 0; index < exts.length; index++)
217
      {
219
      {
218
         if (exts.options[index].value == '.cots')
220
         if (exts.options[index].getAttribute("isCOTS") == "Y")
219
         {
221
         {
220
            exts.options[index].style.display = "none";
222
            exts.options[index].style.display = "none";
221
            exts.options[index].disabled=true;
223
            exts.options[index].disabled=true;
222
         }
224
         }
223
      }
225
      }