|
@@ -540,6 +540,7 @@
|
|
|
row['_' + field + '_id'] = $(this).attr('id');
|
|
row['_' + field + '_id'] = $(this).attr('id');
|
|
|
row['_' + field + '_class'] = $(this).attr('class');
|
|
row['_' + field + '_class'] = $(this).attr('class');
|
|
|
row['_' + field + '_rowspan'] = $(this).attr('rowspan');
|
|
row['_' + field + '_rowspan'] = $(this).attr('rowspan');
|
|
|
|
|
+ row['_' + field + '_title'] = $(this).attr('title');
|
|
|
row['_' + field + '_data'] = getRealDataAttr($(this).data());
|
|
row['_' + field + '_data'] = getRealDataAttr($(this).data());
|
|
|
});
|
|
});
|
|
|
data.push(row);
|
|
data.push(row);
|
|
@@ -1319,6 +1320,7 @@
|
|
|
class_ = that.header.classes[j],
|
|
class_ = that.header.classes[j],
|
|
|
data_ = '',
|
|
data_ = '',
|
|
|
rowspan_ = '',
|
|
rowspan_ = '',
|
|
|
|
|
+ title_ = '',
|
|
|
column = that.options.columns[getFieldIndex(that.options.columns, field)];
|
|
column = that.options.columns[getFieldIndex(that.options.columns, field)];
|
|
|
|
|
|
|
|
if (!column.visible) {
|
|
if (!column.visible) {
|
|
@@ -1340,6 +1342,9 @@
|
|
|
if (item['_' + field + '_rowspan']) {
|
|
if (item['_' + field + '_rowspan']) {
|
|
|
rowspan_ = sprintf(' rowspan="%s"', item['_' + field + '_rowspan']);
|
|
rowspan_ = sprintf(' rowspan="%s"', item['_' + field + '_rowspan']);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (item['_' + field + '_title']) {
|
|
|
|
|
+ title_ = sprintf(' title="%s"', item['_' + field + '_title']);
|
|
|
|
|
+ }
|
|
|
cellStyle = calculateObjectValue(that.header,
|
|
cellStyle = calculateObjectValue(that.header,
|
|
|
that.header.cellStyles[j], [value, item, i], cellStyle);
|
|
that.header.cellStyles[j], [value, item, i], cellStyle);
|
|
|
if (cellStyle.classes) {
|
|
if (cellStyle.classes) {
|
|
@@ -1392,7 +1397,7 @@
|
|
|
getPropertyFromOther(that.options.columns, 'field', 'title', field)) : '',
|
|
getPropertyFromOther(that.options.columns, 'field', 'title', field)) : '',
|
|
|
sprintf('<span class="value">%s</span>', value),
|
|
sprintf('<span class="value">%s</span>', value),
|
|
|
'</div>'
|
|
'</div>'
|
|
|
- ].join('') : [sprintf('<td%s %s %s %s %s>', id_, class_, style, data_, rowspan_),
|
|
|
|
|
|
|
+ ].join('') : [sprintf('<td%s %s %s %s %s %s>', id_, class_, style, data_, rowspan_, title_),
|
|
|
value,
|
|
value,
|
|
|
'</td>'
|
|
'</td>'
|
|
|
].join('');
|
|
].join('');
|