Subversion Repositories DevTools

Rev

Rev 5057 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5057 Rev 5080
Line 9... Line 9...
9
'       - Allow filering of SDK Versions
9
'       - Allow filering of SDK Versions
10
'       - Allow state change of versions
10
'       - Allow state change of versions
11
'       - Allow creation of new versions
11
'       - Allow creation of new versions
12
'   
12
'   
13
%>
13
%>
-
 
14
<%
-
 
15
Option explicit
-
 
16
' Good idea to set when using redirect
-
 
17
Response.Expires = 0   ' always load the page, dont store
-
 
18
%>
-
 
19
<!--#include file="common/conf.asp"-->
-
 
20
<!--#include file="common/globals.asp"-->
-
 
21
<!--#include file="common/formating.asp"-->
-
 
22
<!--#include file="common/qstr.asp"-->
-
 
23
<!--#include file="common/common_subs.asp"-->
-
 
24
<%
-
 
25
'------------ ACCESS CONTROL ------------------
-
 
26
%>
-
 
27
<!--#include file="_access_control_general.asp"-->
-
 
28
<%
-
 
29
'------------ Variable Definition -------------
-
 
30
Dim editMode
-
 
31
Dim modifyMode
-
 
32
'------------ Constants Declaration -----------
-
 
33
'------------ Variable Init -------------------
-
 
34
editMode = "disabled"
-
 
35
modifyMode = "disabled"
-
 
36
If canActionControl("AdminSdk") Then editMode = ""
-
 
37
If canActionControl("CreateSdk") Then modifyMode = ""
-
 
38
%>
14
<script>
39
<script>
15
//# sourceURL=sdk_versions.asp
40
//# sourceURL=sdk_versions.asp
16
 
41
 
17
//  Populate the header of this page
42
//  Populate the header of this page
18
//
43
//
Line 69... Line 94...
69
//  Process the raw Ajax data
94
//  Process the raw Ajax data
70
//      Add 'Edit' box
95
//      Add 'Edit' box
71
//      Decode State
96
//      Decode State
72
$('#sdk_versions').on('xhr.dt', function ( e, settings, json ) {
97
$('#sdk_versions').on('xhr.dt', function ( e, settings, json ) {
73
        json.aaData.forEach(function(row){
98
        json.aaData.forEach(function(row){
74
            row.SDK_EDIT   = "<button class='rmbutton editSdk' data-sdktag_id='" + row.SDKTAG_ID + "' title='Edit Version Name and Description'>Edit</button>";
99
            row.SDK_EDIT   = "<button <%=editMode%> class='rmbutton editSdk' data-sdktag_id='" + row.SDKTAG_ID + "' title='Edit Version Name and Description'>Edit</button>";
75
            row.SDK_MODIFY = "<button class='rmbutton modifySdk' data-sdktag_id='" + row.SDKTAG_ID + "' title='Modify content of the SDK'>Modify</button>";
100
            row.SDK_MODIFY = "<button <%=modifyMode%> class='rmbutton modifySdk' data-sdktag_id='" + row.SDKTAG_ID + "' title='Modify content of the SDK'>Modify</button>";
76
 
101
 
77
            switch (row.SDK_STATE)
102
            switch (row.SDK_STATE)
78
            {
103
            {
79
            case 'U' : row.SDK_STATE = 'WIP'; break; 
104
            case 'U' : row.SDK_STATE = 'WIP'; break; 
80
            case 'R' : row.SDK_STATE = 'Released'; break; 
105
            case 'R' : row.SDK_STATE = 'Released'; break;