From e79d9bd5ba4ba67808cfc7a6115a360df89cf4c5 Mon Sep 17 00:00:00 2001 From: minkuk Date: Wed, 28 Sep 2016 11:27:50 +0000 Subject: [PATCH] datatable + --- app/views/home/index.html.erb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 07c888c..5ed14db 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -305,6 +305,31 @@ $(document).ready(function() { }); } }); + + var table = $('#tile_info').dataTable( { + "bSort": false//, + /* + initComplete: function(){ + $('#file_manager_table_filter').detach().appendTo("#file_manager_filter_div").css({ + 'width':'250px' + }); + $('#file_manager_table_length').detach().appendTo("#file_manager_filter_div").css({ + 'width':'150px', + 'float':'right' + }); + $('#tile_info_div').css({ + 'width':'100%', + 'height':'48px', + }); + $('#file_manager_filter_div input').css({ + 'width':'70%', + 'height':'70%', + 'font-size':'14px', + 'padding':'5px' + }); + } + */ + }); var options = { legend: false,