Subversion Repositories DevTools

Rev

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

Rev 6612 Rev 6827
Line 163... Line 163...
163
 
163
 
164
//  This function is invoked when the user clicks within a row
164
//  This function is invoked when the user clicks within a row
165
//  The click will re-load and reposition the version history to the selected version
165
//  The click will re-load and reposition the version history to the selected version
166
//  The problem is that the 'Destroy Version' interacts with this.
166
//  The problem is that the 'Destroy Version' interacts with this.
167
//  Also the mailto operation interacts with this
167
//  Also the mailto operation interacts with this
168
//  Solution: The DestroyVersion is an image within an anchor. 
168
//  Solution: The DestroyVersion is an image within a 'td'. 
169
//            If the anchor has a class of nogo, then don't navigate
169
//            If the 'td' has a class of nogo, then don't navigate
170
function selectVersion(href,event)
170
function selectVersion(href,event)
171
{
171
{
172
    if (! ($(event.target).closest('a').hasClass('nogo') || $(event.target).closest('span').hasClass('mailto')) ) {
172
    if (! ($(event.target).closest('td').hasClass('nogo') || $(event.target).closest('span').hasClass('mailto')) ) {
173
        location.href = href;
173
        location.href = href;
174
    }
174
    }
175
}
175
}
176
 
176
 
177
//  Encode data into URL
177
//  Encode data into URL
Line 270... Line 270...
270
            Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
270
            Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
271
          End If
271
          End If
272
          
272
          
273
          Response.write "<img src='images/spacer.gif' width='25' height='25'>"
273
          Response.write "<img src='images/spacer.gif' width='25' height='25'>"
274
          If filterInUse Then
274
          If filterInUse Then
275
            Response.write "<input type='image' name='btn' src='images/abtn_filter_on.gif' width='25' height='25' border='0' alt='Apply filter. (Filter is in use!)'>"
275
            Response.write "<input type='image' name='btn' src='images/abtn_filter_on.gif' width='25' height='25' border='0' title='Apply filter. (Filter is in use!)'>"
276
          Else
276
          Else
277
            Response.write "<input type='image' name='btn' src='images/abtn_filter.gif' width='25' height='25' border='0' alt='Apply filter'>"
277
            Response.write "<input type='image' name='btn' src='images/abtn_filter.gif' width='25' height='25' border='0' title='Apply filter'>"
278
          End If
278
          End If
279
          Response.write "<a href='"& scriptName &"?"& Persists_Query_String( "filter_reset=true" ) &"'><img src='images/abtn_remove_filter.gif' alt='Remove filter' width='25' height='25' hspace='2' border='0'></a>"
279
          Response.write "<span class=pointer  onClick=""location.href='"& scriptName &"?"& Persists_Query_String( "filter_reset=true" ) &"'""><img src='images/abtn_remove_filter.gif' title='Remove filter' width='25' height='25' hspace='2' border='0'></a>"
280
 
280
 
281
          Response.write "<img src='images/spacer.gif' width='25' height='25'>"
281
          Response.write "<img src='images/spacer.gif' width='25' height='25'>"
282
          Response.write "<a href='"& scriptName &"?"& Persists_Query_String( "hideRipple=" & not hideRipple ) &"'>"
282
          Response.write "<span class=pointer onClick=""location.href='"& scriptName &"?"& Persists_Query_String( "hideRipple=" & not hideRipple ) &"'"">"
283
              If hideRipple Then
283
              If hideRipple Then
284
                Response.write "<img src='images/RippleSquareOff.gif' width='25' height='25' border='0' title='Rippled Versions Hidden. Toggle'>"
284
                Response.write "<img src='images/RippleSquareOff.gif' width='25' height='25' border='0' title='Rippled Versions Hidden. Toggle'>"
285
              Else
285
              Else
286
                Response.write "<img src='images/RippleSquare.gif' width='25' height='25' border='0' title='Rippled Versions Shown. Toggle'>"
286
                Response.write "<img src='images/RippleSquare.gif' width='25' height='25' border='0' title='Rippled Versions Shown. Toggle'>"
287
              End If
287
              End If
288
          Response.write "</a>"
288
          Response.write "</span>"
289
 
289
 
290
          %></td>
290
          %></td>
291
          <td width="1" valign="middle" background="images/bg_action_norm.gif"><a href="javascript:;" onClick="window.opener.document.location='dependencies.asp?pv_id=<%=parPv_id%>';self.close();"><img src="images/abtn_open.gif" width="46" height="25" hspace="5" border="0" alt="Open In Parent Window."></a></td>
291
          <td width="1" class=pointer valign="middle" background="images/bg_action_norm.gif" onClick="window.opener.document.location='dependencies.asp?pv_id=<%=parPv_id%>';self.close();"><img src="images/abtn_open.gif" width="46" height="25" hspace="5" border="0" alt="Open In Parent Window."></td>
292
          <td width="1" valign="middle" background="images/bg_action_norm.gif"><a href="javascript:;" onClick="self.close();"><img src="images/abtn_close.gif" width="46" height="25" hspace="5" border="0" alt="Close this window."></a></td>
292
          <td width="1" class=pointer valign="middle" background="images/bg_action_norm.gif" onClick="self.close();"><img src="images/abtn_close.gif" width="46" height="25" hspace="5" border="0" alt="Close this window."></td>
293
        </tr>
293
        </tr>
294
      </table>
294
      </table>
295
      <!--------------------- CAPTION ---------------------------->
295
      <!--------------------- CAPTION ---------------------------->
296
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
296
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
297
        <tr>
297
        <tr>
Line 394... Line 394...
394
                        End If
394
                        End If
395
                    End If
395
                    End If
396
                    
396
                    
397
                    ' Set destroy package action
397
                    ' Set destroy package action
398
                    If CanDestroyPackage Then
398
                    If CanDestroyPackage Then
399
                        DestroyPackage = "<a class='nogo' href='javascript:;'"&_
399
                        DestroyPackage = "<span "&_
400
                                         " title='Destroy this version of the package.' "&_
400
                                         " title='Destroy this version of the package.' "&_
401
                                         " onClick=DestroyVersion("& aVersions( rsVB.FieldIndex("pv_id"), i ) &"," & idx  &")>" &_
401
                                         " onClick=DestroyVersion("& aVersions( rsVB.FieldIndex("pv_id"), i ) &"," & idx  &")>" &_
402
                                         " <img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><a>"
402
                                         " <img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><span>"
403
                    Else
403
                    Else
404
                        DestroyPackage = ""
404
                        DestroyPackage = ""
405
                    End If
405
                    End If
406
                %>
406
                %>
407
                <tr id="<%=idxName%>" <%=Set_Row_Style ( URLstring, CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) )%>> 
407
                <tr id="<%=idxName%>" <%=Set_Row_Style ( URLstring, CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) )%>>