Subversion Repositories DevTools

Rev

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

Rev 5102 Rev 5114
Line 17... Line 17...
17
<!--#include file="common/common_subs.asp"-->
17
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="_access_control_general.asp"-->
18
<!--#include file="_access_control_general.asp"-->
19
 
19
 
20
<script>
20
<script>
21
//  Configure the Summary Table
21
//  Configure the Summary Table
22
$('#sdk_names_body').DataTable({
22
table = $('#sdk_names_body').DataTable({
23
    deferRender:    true,
23
    deferRender:    true,
24
    dom: "rtiS",
24
    dom: "rtiS",
25
    sScrollY: $( document ).height() - 200,
25
    sScrollY: $( document ).height() - 200,
26
    scrollCollapse: true,
26
    scrollCollapse: true,
27
    processing: true,
27
    processing: true,
Line 38... Line 38...
38
        { className: "dt-nowrap" },
38
        { className: "dt-nowrap" },
39
        { "orderable" : false , 
39
        { "orderable" : false , 
40
<%If NOT canActionControl("AdminSdk") Then %>
40
<%If NOT canActionControl("AdminSdk") Then %>
41
            visible : false
41
            visible : false
42
<%End If%>
42
<%End If%>
43
        },
43
        }
44
    ],
44
    ]
45
});
45
});
46
 
46
 
47
<%If canActionControl("AdminSdk") Then %>
47
<%If canActionControl("AdminSdk") Then %>
48
//  Wire up an 'Add' button
48
//  Wire up an 'Add' button
49
$( '#addSdk' ).click(function() {
49
$( '#addSdk' ).click(function() {
Line 53... Line 53...
53
$( '#addSdkView' ).click(function() {
53
$( '#addSdkView' ).click(function() {
54
    $('#popmenu').load('sdk_view_new.asp');
54
    $('#popmenu').load('sdk_view_new.asp');
55
    });
55
    });
56
<%End If%>
56
<%End If%>
57
 
57
 
-
 
58
//  Double click in row - Select the SDK Version for display/edit
-
 
59
$('#sdk_names_body tbody').on( 'dblclick', 'tr', function () {
-
 
60
    $("#sdk_names_body").trigger('newPageBody', {url: 'sdk_versions.asp', data : {sdk_id : table.row(this).data()[0]}});
-
 
61
 
-
 
62
} );
-
 
63
 
58
// Edit the current SDK entry
64
// Edit the current SDK entry
59
function editSdkEntry(sdkId)
65
function editSdkEntry(sdkId)
60
{
66
{
61
    $('#popmenu').load('sdk_names_edit.asp', {sdkId: sdkId});
67
    $('#popmenu').load('sdk_names_edit.asp', {sdkId: sdkId});
62
}
68
}
Line 88... Line 94...
88
              <th width="10%"> Project
94
              <th width="10%"> Project
89
              <th width="10%"> Base View
95
              <th width="10%"> Base View
90
              <th width="1%"> Edit
96
              <th width="1%"> Edit
91
            </thead>
97
            </thead>
92
        </table>
98
        </table>
93
        <div class=bg_dialog>&nbsp;
99
        <div class=bg_dialog style="position:relative">&nbsp;
94
            <span id="addSdk" title="Create New SDK Family">
100
            <span id="addSdk" title="Create New SDK Family" style="float:left">
95
<%If canActionControl("AdminSdk") Then %>
101
<%If canActionControl("AdminSdk") Then %>
96
            <img src="icons/btn_add.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
102
            <img src="icons/btn_add.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
97
<%Else%>
103
<%Else%>
98
            <img src="icons/btn_add_dis.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
104
            <img src="icons/btn_add_dis.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
99
<%End If%>
105
<%End If%>