|
|
@ -240,10 +240,17 @@ var abp = abp || {}; |
|
|
|
|
|
|
|
|
if (tableInstance.aoColumns) { |
|
|
if (tableInstance.aoColumns) { |
|
|
columns = tableInstance.aoColumns; |
|
|
columns = tableInstance.aoColumns; |
|
|
} else { |
|
|
} else if (abp.utils.isFunction(tableInstance.fnSettings)) { |
|
|
columns = tableInstance.fnSettings().aoColumns; |
|
|
columns = tableInstance.fnSettings().aoColumns; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!columns && abp.utils.isFunction(tableInstance.api)) { |
|
|
|
|
|
var settings = tableInstance.api().settings(); |
|
|
|
|
|
if (settings.length === 1 && settings[0].aoColumns) { |
|
|
|
|
|
columns = settings[0].aoColumns; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!columns) { |
|
|
if (!columns) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
@ -271,8 +278,9 @@ var abp = abp || {}; |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
var _existingApiRenderRowActionsFunction = $.fn.dataTableExt.oApi.renderRowActions; |
|
|
if ($.fn.dataTableExt.oApi) { |
|
|
$.fn.dataTableExt.oApi.renderRowActions = |
|
|
var _existingApiRenderRowActionsFunction = $.fn.dataTableExt.oApi.renderRowActions; |
|
|
|
|
|
$.fn.dataTableExt.oApi.renderRowActions = |
|
|
function (tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull) { |
|
|
function (tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull) { |
|
|
if (_existingApiRenderRowActionsFunction) { |
|
|
if (_existingApiRenderRowActionsFunction) { |
|
|
_existingApiRenderRowActionsFunction(tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull); |
|
|
_existingApiRenderRowActionsFunction(tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull); |
|
|
@ -280,7 +288,8 @@ var abp = abp || {}; |
|
|
|
|
|
|
|
|
renderRowActions(tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull); |
|
|
renderRowActions(tableInstance, nRow, aData, iDisplayIndex, iDisplayIndexFull); |
|
|
}; |
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!$.fn.dataTable) { |
|
|
if (!$.fn.dataTable) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|