Pagination and jQuery UI button Icons
Pagination and jQuery UI button Icons

When I use pagination the buttons inside the table rows loose their icons and revert back to text only.
Is there a way to stop this?
[code]
//<![CDATA[
$(function() {
$('#tblCustomers').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"aoColumnDefs": [{ "bSortable": false, "aTargets": [3]}]
});
$('.btnEdit').button({icons: {primary: "ui-icon-pencil"}, text: false});
});
//]]>
Name
Email
Phone
Edit Details
Joe Bloggs
joe@email.com
12345
Edit Details
[/code]
Is there a way to stop this?
[code]
//<![CDATA[
$(function() {
$('#tblCustomers').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"aoColumnDefs": [{ "bSortable": false, "aTargets": [3]}]
});
$('.btnEdit').button({icons: {primary: "ui-icon-pencil"}, text: false});
});
//]]>
Name
Phone
Edit Details
Joe Bloggs
joe@email.com
12345
Edit Details
[/code]
This discussion has been closed.
Replies
[code]
//<![CDATA[
$(function() {
$('#tblCustomers').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"aoColumnDefs": [{ "bSortable": false, "aTargets": [3]}],
"fnDrawCallback": function () { $( ".btnEdit" ).button(); }
});
$('.btnEdit').button({icons: {primary: "ui-icon-pencil"}, text: false});
});
//]]>
Name
Email
Phone
Edit Details
Joe Bloggs
joe@email.com
12345
Edit Details
[/code]