Subversion Repositories DevTools

Rev

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

Rev 5103 Rev 5114
Line 152... Line 152...
152
//  Process each row of table data before it is presented to the table scroller
152
//  Process each row of table data before it is presented to the table scroller
153
//  Process the raw Ajax data
153
//  Process the raw Ajax data
154
//      Create a checkbox for the state
154
//      Create a checkbox for the state
155
//      Add a data item to the entry - to allow traceback when saving
155
//      Add a data item to the entry - to allow traceback when saving
156
$('#sdk_content').on('xhr.dt', function ( e, settings, json ) {
156
$('#sdk_content').on('xhr.dt', function ( e, settings, json ) {
157
        json.aaData.forEach(function(row){
157
        $.each(json.aaData, function(idx,row){
158
            if (row.SDKPKG_STATE != null) {
158
            if (row.SDKPKG_STATE != null) {
159
                var checked = row.SDKPKG_STATE == "E" ? 'checked' : '';
159
                var checked = row.SDKPKG_STATE == "E" ? 'checked' : '';
160
                var disabled = (sdkDetails.SDK_STATE === 'U' ) ? '' : ' disabled ';
160
                var disabled = (sdkDetails.SDK_STATE === 'U' ) ? '' : ' disabled ';
161
                row.SDKPKG_CHECK = '<input type="checkbox" class=clickable <%=modifyState%> '+ checked + disabled + ' data-pvid='+ row.PV_ID +'>';
161
                row.SDKPKG_CHECK = '<input type="checkbox" class=clickable <%=modifyState%> '+ checked + disabled + ' data-pvid='+ row.PV_ID +'>';
162
            } else {
162
            } else {
Line 304... Line 304...
304
            <%=Quick_Help("sdk_state")%>
304
            <%=Quick_Help("sdk_state")%>
305
        </fieldset>
305
        </fieldset>
306
    </div>
306
    </div>
307
 
307
 
308
    <div style="float:left;">
308
    <div style="float:left;">
-
 
309
        <img <%=iif(modifyState<>"disabled","id='sel_delete'","")%>'
309
        <img id=sel_delete src="images/abtn_remove_pkg.gif" hspace="2" border="0" style="height: 25px;margin-top: 8;" <%=modifyState%>>
310
             src='<%=iif(modifyState<>"disabled","images/abtn_remove_pkg.gif","images/abtn_remove_pkg_off.gif")%>' 
-
 
311
             style="height:25px;margin:8px 0px 0px;border:none;" >
310
    </div>
312
    </div>
311
 
313
 
312
    <div style="float:left">
314
    <div style="float:left">
313
        <fieldset style="padding:2px">
315
        <fieldset style="padding:2px">
314
            <legend>Ref Sdk</legend>
316
            <legend>Ref Sdk</legend>