| Line 96... |
Line 96... |
| 96 |
End If
|
96 |
End If
|
| 97 |
Next
|
97 |
Next
|
| 98 |
|
98 |
|
| 99 |
End Function
|
99 |
End Function
|
| 100 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
100 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
| - |
|
101 |
Function Set_Row_Style ( sLink, pvid )
|
| - |
|
102 |
Set_Row_Style = "onMouseOver='this.style.cursor=""pointer""' onClick='selectVersion("""& sLink &""",event)' "
|
| - |
|
103 |
End Function
|
| - |
|
104 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
| 101 |
%>
|
105 |
%>
|
| 102 |
<!--#include file="_jquery_includes.asp"-->
|
106 |
<!--#include file="_jquery_includes.asp"-->
|
| 103 |
<script language="JavaScript" type="text/JavaScript">
|
107 |
<script language="JavaScript" type="text/JavaScript">
|
| 104 |
function useThisVersion (pkgName, pkgVersion, rtagId, oldPvid, newPvid) {
|
108 |
function useThisVersion (pkgName, pkgVersion, rtagId, oldPvid, newPvid) {
|
| 105 |
console.log("useThisVersion:", pkgName, pkgVersion);
|
109 |
console.log("useThisVersion:", pkgName, pkgVersion);
|
| Line 133... |
Line 137... |
| 133 |
}
|
137 |
}
|
| 134 |
});
|
138 |
});
|
| 135 |
|
139 |
|
| 136 |
return false;
|
140 |
return false;
|
| 137 |
}
|
141 |
}
|
| - |
|
142 |
|
| - |
|
143 |
// This function is invoked when the user clicks within a row
|
| - |
|
144 |
// The click will re-load and reposition the verion history to the selected version
|
| - |
|
145 |
// The problem is that the 'Destroy Version' intercats with this.
|
| - |
|
146 |
// Solution: The DestroyVersin is an image within an anchor.
|
| - |
|
147 |
// If the anchor has a class of nogo, then don't navigate
|
| - |
|
148 |
function selectVersion(href,event)
|
| - |
|
149 |
{
|
| - |
|
150 |
if (! $(event.target).closest('a').hasClass('nogo')) {
|
| - |
|
151 |
location.href = href;
|
| - |
|
152 |
}
|
| - |
|
153 |
}
|
| - |
|
154 |
|
| 138 |
//# sourceURL=_version_browser_1.asp
|
155 |
//# sourceURL=_version_browser_1.asp
|
| 139 |
</script>
|
156 |
</script>
|
| 140 |
|
157 |
|
| 141 |
<!--------------- ACTION BUTTONS -------------------------->
|
158 |
<!--------------- ACTION BUTTONS -------------------------->
|
| 142 |
<form name="filter" method="get" action="<%=scriptName%>">
|
159 |
<form name="filter" method="get" action="<%=scriptName%>">
|
| Line 275... |
Line 292... |
| 275 |
End If
|
292 |
End If
|
| 276 |
|
293 |
|
| 277 |
|
294 |
|
| 278 |
' Set destroy package action
|
295 |
' Set destroy package action
|
| 279 |
If CanDestroyPackage Then
|
296 |
If CanDestroyPackage Then
|
| 280 |
DestroyPackage = "<a href='_destroy_package.asp?pv_id="& aVersions( rsVB.FieldIndex("pv_id"), i ) &"&bfile="& ScriptName &"&rtag_id="& parRtag_id &"&FLuser_name="& parFLuser_name &"&FLpkg_version="& parFLpkg_version &"&rfile="& parRfile &"&pkg_id="& parPkg_id &"&OLDpv_id="& parOLDpv_id &"' "&_
|
297 |
DestroyPackage = "<a class='nogo' href='javascript:;'"&_
|
| 281 |
" title='Destroy this package from the database.' "&_
|
298 |
" title='Destroy this package from the database.' "&_
|
| 282 |
" onClick='return confirmAction(""You are about to destroy ["& sPkg_Name &" "& aVersions( rsVB.FieldIndex("pkg_version"), i ) &"]. You cannot undo this operation.\nDo you want to proceed?"");' ><img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><a>"
|
299 |
" onClick=""return vixConfirm('You are about to destroy ["& sPkg_Name &" "& aVersions( rsVB.FieldIndex("pkg_version"), i ) &"].<p>You cannot undo this operation.<br>Do you want to proceed?', {button : 'Destroy', url : '_destroy_package.asp?pv_id="& aVersions( rsVB.FieldIndex("pv_id"), i ) &"&bfile="& ScriptName &"&rtag_id="& parRtag_id &"&FLuser_name="& parFLuser_name &"&FLpkg_version="& parFLpkg_version &"&rfile="& parRfile &"&pkg_id="& parPkg_id &"&OLDpv_id="& parOLDpv_id &"'});"" >" &_
|
| - |
|
300 |
" <img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><a>"
|
| - |
|
301 |
|
| 283 |
End If
|
302 |
End If
|
| 284 |
%>
|
303 |
%>
|
| 285 |
<tr <%=Set_Row_Style ( URLstring )%>>
|
304 |
<tr <%=Set_Row_Style ( URLstring, CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) )%>>
|
| 286 |
<td align="right" background="images/bg_action_dark.gif"><%=imgPointer%></td>
|
305 |
<td align="right" background="images/bg_action_dark.gif"><%=imgPointer%></td>
|
| 287 |
<td align="center" valign="top" <%=rowColor%>><%=imgLock%></td>
|
306 |
<td align="center" valign="top" <%=rowColor%>><%=imgLock%></td>
|
| 288 |
<td valign="top" nowrap <%=rowColor%>><a name="<%=anchorName%>"></a><a href="<%=URLstring%>" class="txt_linked"><%=aVersions( rsVB.FieldIndex("pkg_version"), i )%></a></td>
|
307 |
<td valign="top" nowrap <%=rowColor%>><a name="<%=anchorName%>"></a><a href="<%=URLstring%>" class="txt_linked"><%=aVersions( rsVB.FieldIndex("pkg_version"), i )%></a></td>
|
| 289 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldRelease_Date%></td>
|
308 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldRelease_Date%></td>
|
| 290 |
<td valign="top" <%=rowColor%> class="form_item"><%=NewLine_To_BR ( To_HTML( aVersions( rsVB.FieldIndex("comments"), i ) ) )%></td>
|
309 |
<td valign="top" <%=rowColor%> class="form_item"><%=NewLine_To_BR ( To_HTML( aVersions( rsVB.FieldIndex("comments"), i ) ) )%></td>
|
| 291 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldReleased_By%></td>
|
310 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldReleased_By%></td>
|
| 292 |
<td align="center" valign="top" <%=rowColor%>><%=fieldDownloadFullReleaseNotes%></td>
|
311 |
<td align="center" valign="top" <%=rowColor%>><%=fieldDownloadFullReleaseNotes%></td>
|
| 293 |
<td align="center" valign="top" <%=rowColor%>><%=DestroyPackage%></td>
|
312 |
<td align="center" valign="top" class="nogo" <%=rowColor%>><%=DestroyPackage%></td>
|
| 294 |
</tr>
|
313 |
</tr>
|
| 295 |
<%
|
314 |
<%
|
| 296 |
Next
|
315 |
Next
|
| 297 |
End If
|
316 |
End If
|
| 298 |
%>
|
317 |
%>
|