diff options
author | modus75 <modus75@users.noreply.github.com> | 2016-03-09 21:54:47 +0100 |
---|---|---|
committer | modus75 <modus75@users.noreply.github.com> | 2016-03-09 21:54:47 +0100 |
commit | 7dd5029fc63544fa8c7ec8c5646f1fe2d969ce7a (patch) | |
tree | 0c3ca4d9b7bf674a08834e3f721baa1f3d4707df /admin/themes/default/template/rating_user.tpl | |
parent | 4f60f4508c8e7eb84706d48d5600c7bdbaff2532 (diff) | |
parent | 8b51eb1b40895358f7ed9dfdfcc0c1f691aeeef9 (diff) |
Merge branch 'feature/378-upgrade-datatables'
Diffstat (limited to 'admin/themes/default/template/rating_user.tpl')
-rw-r--r-- | admin/themes/default/template/rating_user.tpl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/admin/themes/default/template/rating_user.tpl b/admin/themes/default/template/rating_user.tpl index bc2b29ad6..e1493832a 100644 --- a/admin/themes/default/template/rating_user.tpl +++ b/admin/themes/default/template/rating_user.tpl @@ -65,14 +65,14 @@ body .ui-tooltip { {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} {combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'} {footer_script} -var oTable = jQuery('#rateTable').dataTable({ - sDom : '<"dtBar"filp>rt<"dtBar"ilp>', - iDisplayLength: 100, - aLengthMenu: [ [25, 50, 100, 500, -1], [25, 50, 100, 500, "All"]], - aaSorting: [], //[[1,'desc']], - bAutoWidth: false, - bSortClasses: false, - aoColumnDefs: [ +jQuery('#rateTable').dataTable({ + dom : '<"dtBar"filp>rt<"dtBar"ilp>', + pageLength: 100, + lengthMenu: [ [25, 50, 100, 500, -1], [25, 50, 100, 500, "All"]], + sorting: [], //[[1,'desc']], + autoWidth: false, + sortClasses: false, + columnDefs: [ { aTargets: ["dtc_user"], sType: "string", @@ -108,6 +108,7 @@ var oTable = jQuery('#rateTable').dataTable({ ] }); +var oTable = jQuery('#rateTable').DataTable(); function uidFromCell(cell){ var tr = cell; @@ -135,7 +136,7 @@ $(document).ready( function(){ onFailure: function(num, text) { tr.stop(); tr.fadeTo(0,1); alert(num + " " + text); }, onSuccess: function(result){ if (result) - oTable.fnDeleteRow(tr[0]); + oTable.row(tr[0]).remove().draw(); else alert(result); } |