| Line 47... |
Line 47... |
| 47 |
var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0;
|
47 |
var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0;
|
| 48 |
//netscape, safari, mozilla behave the same???
|
48 |
//netscape, safari, mozilla behave the same???
|
| 49 |
var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0;
|
49 |
var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0;
|
| 50 |
|
50 |
|
| 51 |
///////////////////////////////////////////////
|
51 |
///////////////////////////////////////////////
|
| 52 |
// Function: destroyPackageVersion
|
- |
|
| 53 |
// Description: This function will display a conformation dialog before
|
- |
|
| 54 |
// destroying the spacified package-version
|
- |
|
| 55 |
//
|
- |
|
| 56 |
function destroyPackageVersion()
|
- |
|
| 57 |
{
|
- |
|
| 58 |
var message = 'You are about to destroy [<%=pkgInfoHash.Item("pkg_name")%> <%=pkgInfoHash.Item("pkg_version")%>].<p>You cannot undo this operation.<br>Do you want to proceed?';
|
- |
|
| 59 |
var url = '_destroy_package.asp?rtag_id=<%=Request("rtag_id")%>&bfile=<%=ScriptName%>&pkg_id=<%=pkgInfoHash.Item("pkg_id")%>&pv_id=<%=Request("pv_id")%>';
|
- |
|
| 60 |
vixConfirm( message, {title:'Destroy Package Version', 'button' : 'Destroy', url : url, icon : 'images/i_critical.gif'});
|
- |
|
| 61 |
return false;
|
- |
|
| 62 |
}
|
- |
|
| 63 |
|
- |
|
| 64 |
///////////////////////////////////////////////
|
- |
|
| 65 |
// Function: toggletick
|
52 |
// Function: toggletick
|
| 66 |
// Description: This function will toggle all visible (pending) tick boxes
|
53 |
// Description: This function will toggle all visible (pending) tick boxes
|
| 67 |
// Input: te - Controlling element
|
54 |
// Input: te - Controlling element
|
| 68 |
//
|
55 |
//
|
| 69 |
function toggletick(te)
|
56 |
function toggletick(te)
|
| Line 954... |
Line 941... |
| 954 |
Response.write "<td width='1'><img src='images/abtn_add_pkg_off.gif' alt='Add package to this release' width='26' height='26' hspace='1' border='0'></td>"
|
941 |
Response.write "<td width='1'><img src='images/abtn_add_pkg_off.gif' alt='Add package to this release' width='26' height='26' hspace='1' border='0'></td>"
|
| 955 |
End If
|
942 |
End If
|
| 956 |
|
943 |
|
| 957 |
If (pkgInfoHash.Item("dlocked") <> "Y") AND (Request("pv_id") <> "") Then
|
944 |
If (pkgInfoHash.Item("dlocked") <> "Y") AND (Request("pv_id") <> "") Then
|
| 958 |
If (objAccessControl.UserLogedIn) AND ( (objAccessControl.UserName = pkgInfoHash.Item("creator")) OR (canActionControlInProject("DestroyPackageFromRelease")) ) Then
|
945 |
If (objAccessControl.UserLogedIn) AND ( (objAccessControl.UserName = pkgInfoHash.Item("creator")) OR (canActionControlInProject("DestroyPackageFromRelease")) ) Then
|
| 959 |
Response.write "<td width='1'><a href='javascript:;' title='Destroy the selected Package Version' onClick='destroyPackageVersion();'><img src='icons/i_destroy_package.gif' width='26' height='26' hspace='1' border='0'></td>"
|
946 |
Response.write "<td width='1'><a href='javascript:;' title='Destroy the selected Package Version' onClick=""MM_openVixIFrame('_destroy_package.asp?rtag_id=" & Request("rtag_id") & "&bfile="&ScriptName & "&pkg_id=" & pkgInfoHash.Item("pkg_id") & "&pv_id=" & Request("pv_id") & "','Destroy Package Version');"">"
|
| - |
|
947 |
Response.Write "<img src='icons/i_destroy_package.gif' width='26' height='26' hspace='1' border='0'></td>"
|
| 960 |
Else
|
948 |
Else
|
| 961 |
Response.write "<td width='1'><img title='Destroy the selected Package Version' src='icons/i_destroy_package_off.gif' width='26' height='26' hspace='1' border='0'></td>"
|
949 |
Response.write "<td width='1'><img title='Destroy the selected Package Version' src='icons/i_destroy_package_off.gif' width='26' height='26' hspace='1' border='0'></td>"
|
| 962 |
End If
|
950 |
End If
|
| 963 |
End If
|
951 |
End If
|
| 964 |
|
952 |
|