Project

General

Profile

« Previous | Next » 

Revision 86b65fa0

Added by Andreas Kohlbecker almost 11 years ago

module update and some bugfixes for #3316 (dataportal debug box as table and as block)

View differences:

7.x/modules/cdm_dataportal/js/ws_debug_block.js
4 4
 */
5 5
jQuery(document).ready(function($) {
6 6

  
7
    $('#block-cdm-api-cdm-ws-debug .content').hide(); // hide parent element
8

  
9 7
    $('#cdm-ws-debug-table').dataTable({
10 8
        "bPaginate" : false,
11 9
        "bFilter" : true,
......
26 24
                    for(var rowIndex = iStart; rowIndex < iEnd; rowIndex++){
27 25
                        sum += Number(aData[rowIndex][colIndex]);
28 26
                    }
29
                    newHtml = sum;
27
                    newHtml = sum.toFixed(3);
30 28
                } else if(colums_to_sum_up[colIndex]) {
31 29
                    newHtml = colums_to_sum_up[colIndex];
32 30
                }
......
38 36
        }
39 37
    });
40 38

  
41
    $('#block-cdm-api-cdm-ws-debug .title').css('cursor', 'pointer').colorbox({
39
    $('#cdm-ws-debug-button').css('cursor', 'pointer').colorbox({
42 40
        "href" : '#cdm-ws-debug-table_wrapper', // wrapper created by dataTable()
43 41
        "inline" : true,
44 42
        "width" : '90%',

Also available in: Unified diff