Subversion Repositories DevTools

Rev

Rev 6695 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6695 Rev 6787
Line 14... Line 14...
14
**      Fill popup with entire TextArea
14
**      Fill popup with entire TextArea
15
**      Only select td in the current table - prevent picking up bits from nested tables
15
**      Only select td in the current table - prevent picking up bits from nested tables
16
**      'th' with a class of 'noCsv' will exclude the entire column from the output
16
**      'th' with a class of 'noCsv' will exclude the entire column from the output
17
**      The 'modal' display type
17
**      The 'modal' display type
18
**      The 'title' option
18
**      The 'title' option
-
 
19
**      Use attribute of 'data-csv' if provided
19
*/
20
*/
20
jQuery.fn.TableCSVExport = function (options) {
21
jQuery.fn.TableCSVExport = function (options) {
21
    var options = jQuery.extend({
22
    var options = jQuery.extend({
22
        separator: ',',
23
        separator: ',',
23
        header: [],
24
        header: [],
Line 92... Line 93...
92
                    if ( extraDataCounter == insertBeforeNum )
93
                    if ( extraDataCounter == insertBeforeNum )
93
                    {
94
                    {
94
                        tmpRow[tmpRow.length] = jQuery.trim(options.extraData[trCounter - 1]);
95
                        tmpRow[tmpRow.length] = jQuery.trim(options.extraData[trCounter - 1]);
95
                    }
96
                    }
96
                    if (jQuery(this).css('display') != 'none' || options.showHiddenRows) {
97
                    if (jQuery(this).css('display') != 'none' || options.showHiddenRows) {
-
 
98
                        if ( jQuery(this).data('csv') ) {
-
 
99
                            tmpRow[tmpRow.length] = formatData(jQuery(this).data('etext'));
-
 
100
                        }
97
                        if (jQuery.trim(jQuery(this).html()) == "") {
101
                        else if ( jQuery.trim(jQuery(this).html()) == "" ) {
98
                            tmpRow[tmpRow.length] = formatData(options.emptyValue);
102
                            tmpRow[tmpRow.length] = formatData(options.emptyValue);
99
                        } else {
103
                        } else {
100
                            tmpRow[tmpRow.length] = jQuery.trim(formatData(jQuery(this).html()));
104
                            tmpRow[tmpRow.length] = jQuery.trim(formatData(jQuery(this).html()));
101
                        }
105
                        }
102
                    }
106
                    }