| Line 97... |
Line 97... |
| 97 |
Next
|
97 |
Next
|
| 98 |
|
98 |
|
| 99 |
End Function
|
99 |
End Function
|
| 100 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
100 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
| 101 |
%>
|
101 |
%>
|
| - |
|
102 |
<!--#include file="_jquery_includes.asp"-->
|
| - |
|
103 |
<script language="JavaScript" type="text/JavaScript">
|
| - |
|
104 |
function useThisVersion (pkgName, pkgVersion, rtagId, oldPvid, newPvid) {
|
| - |
|
105 |
console.log("useThisVersion:", pkgName, pkgVersion);
|
| - |
|
106 |
debugger;
|
| - |
|
107 |
//alert ("Use this version");
|
| - |
|
108 |
$( "#dialog-confirm" ).dialog({
|
| - |
|
109 |
position: { my: "top", at: "top+100", of: window },
|
| - |
|
110 |
modal: true,
|
| - |
|
111 |
draggable: true,
|
| - |
|
112 |
resizable: true,
|
| - |
|
113 |
dialogClass: "rounded_box",
|
| - |
|
114 |
height:250,
|
| - |
|
115 |
width:350,
|
| - |
|
116 |
buttons: {
|
| - |
|
117 |
"Direct": function() {
|
| - |
|
118 |
window.opener.document.location="_new_version.asp?OLDpv_id=" + oldPvid + "&rtag_id=" + rtagId + "&pv_id=" + newPvid
|
| - |
|
119 |
self.close();
|
| - |
|
120 |
$( this ).dialog( "close" );
|
| - |
|
121 |
},
|
| - |
|
122 |
"Pending": function() {
|
| - |
|
123 |
window.opener.document.location="_new_version.asp?OLDpv_id=" + oldPvid + "&rtag_id=" + rtagId + "&pv_id=" + newPvid + '&iMode=pending';
|
| - |
|
124 |
self.close();
|
| - |
|
125 |
$( this ).dialog( "close" );
|
| - |
|
126 |
},
|
| - |
|
127 |
Cancel: function() {
|
| - |
|
128 |
$( this ).dialog( "close" );
|
| - |
|
129 |
}
|
| - |
|
130 |
},
|
| - |
|
131 |
open: function() {
|
| - |
|
132 |
$(this).siblings('.ui-dialog-buttonpane').find('button:eq(2)').focus();
|
| - |
|
133 |
}
|
| - |
|
134 |
});
|
| - |
|
135 |
|
| - |
|
136 |
return false;
|
| - |
|
137 |
}
|
| - |
|
138 |
//# sourceURL=_version_browser_1.asp
|
| - |
|
139 |
</script>
|
| - |
|
140 |
|
| 102 |
<!--------------- ACTION BUTTONS -------------------------->
|
141 |
<!--------------- ACTION BUTTONS -------------------------->
|
| 103 |
<form name="filter" method="get" action="<%=scriptName%>">
|
142 |
<form name="filter" method="get" action="<%=scriptName%>">
|
| 104 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
143 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 105 |
<tr>
|
144 |
<tr>
|
| 106 |
<td width="1" valign="middle" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="5" height="35"></td>
|
145 |
<td width="1" valign="middle" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="5" height="35"></td>
|
| 107 |
<td width="100%" valign="middle" background="images/bg_action_norm.gif"><%
|
146 |
<td width="100%" valign="middle" background="images/bg_action_norm.gif"><%
|
| 108 |
Dim bEnableUse : bEnableUse = FALSE
|
147 |
Dim bEnableUse : bEnableUse = FALSE
|
| 109 |
If Request("rtag_id") = "" OR _
|
148 |
If Request("rtag_id") = "" OR _
|
| 110 |
Request("pv_id") = "" OR _
|
149 |
Request("pv_id") = "" OR _
|
| - |
|
150 |
parOLDpv_id = ParPv_id OR _
|
| 111 |
bIsPatch OR _
|
151 |
bIsPatch OR _
|
| 112 |
(NOT bCanInsertPkg) OR _
|
152 |
(NOT bCanInsertPkg) OR _
|
| 113 |
(NOT objAccessControl.UserLogedIn) OR _
|
153 |
(NOT objAccessControl.UserLogedIn) OR _
|
| 114 |
(NOT canActionInProject() ) OR _
|
154 |
(NOT canActionInProject() ) OR _
|
| 115 |
(ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE) OR _
|
155 |
(ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE) OR _
|
| Line 121... |
Line 161... |
| 121 |
Else
|
161 |
Else
|
| 122 |
bEnableUse = TRUE
|
162 |
bEnableUse = TRUE
|
| 123 |
End If
|
163 |
End If
|
| 124 |
|
164 |
|
| 125 |
If bEnableUse Then
|
165 |
If bEnableUse Then
|
| - |
|
166 |
%>
|
| - |
|
167 |
<div id='dialog-confirm' title="Confirm version change" style="display:none">
|
| - |
|
168 |
<p>Replace the current version of package <%=sPkg_Name%> with Version <%=sPkg_Version%>.
|
| - |
|
169 |
<p>The new version may be added directly into the release or the change may be made pending.
|
| - |
|
170 |
</div>
|
| - |
|
171 |
<%
|
| 126 |
Response.write "<a href='"& scriptName &"?"& Persists_Query_String( "action=true" ) &"' onClick='return confirmAction(""You are about to insert "& sPkg_Name &" "& sPkg_Version &" into a project release. \nDo you want to proceed?"");'><img src='images/abtn_use_this_version.gif' title='Use this version in project release.' width='107' height='25' hspace='1' border='0'></a>"
|
172 |
Response.write "<a href=';' onClick='return useThisVersion("""& sPkg_Name &""","""& sPkg_Version & """,""" & parRtag_id & ""","""& parOLDpv_id & """,""" & parPv_id & """);'><img src='images/abtn_use_this_version.gif' title='Use this version in project release.' width='107' height='25' hspace='1' border='0'></a>"
|
| 127 |
Else
|
173 |
Else
|
| 128 |
Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
|
174 |
Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
|
| 129 |
End If
|
175 |
End If
|
| 130 |
|
176 |
|
| 131 |
Response.write "<img src='images/spacer.gif' width='25' height='25'>"
|
177 |
Response.write "<img src='images/spacer.gif' width='25' height='25'>"
|
| Line 265... |
Line 311... |
| 265 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
311 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
| 266 |
<input type="hidden" name="filter_reset" value="">
|
312 |
<input type="hidden" name="filter_reset" value="">
|
| 267 |
</form>
|
313 |
</form>
|
| 268 |
|
314 |
|
| 269 |
|
315 |
|
| 270 |
|
- |
|
| 271 |
|
316 |
|
| - |
|
317 |
|