From 661c83d574063033ce097c09db5e615a82d8af75 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 14 Mar 2016 16:01:04 +0100 Subject: [PATCH 1/4] fix coffee lint --- .../app/controllers/_application_controller_table.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_table.coffee b/app/assets/javascripts/app/controllers/_application_controller_table.coffee index a9656dcaa..a297a0424 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_table.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_table.coffee @@ -45,7 +45,7 @@ class App.ControllerTable extends App.Controller helper = tr.clone() helper.children().each (index) -> # Set helper cell sizes to match the original sizes - $(this).width( originals.eq(index).outerWidth() ) + $(@).width( originals.eq(index).outerWidth() ) return helper update: @dndCallback @el.find('table > tbody').sortable(dndOptions) From b0ac1ddc1e8e47a5e0af756b90093b4a3b29fe12 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 14 Mar 2016 16:44:28 +0100 Subject: [PATCH 2/4] load application.css for all media --- .../app/views/generic/table.jst.eco | 12 +++---- app/assets/stylesheets/print.scss | 34 ++++++------------- app/assets/stylesheets/zammad.scss | 5 +++ app/views/layouts/application.html.erb | 4 +-- 4 files changed, 23 insertions(+), 32 deletions(-) diff --git a/app/assets/javascripts/app/views/generic/table.jst.eco b/app/assets/javascripts/app/views/generic/table.jst.eco index 6bbf33c01..6b52e354d 100644 --- a/app/assets/javascripts/app/views/generic/table.jst.eco +++ b/app/assets/javascripts/app/views/generic/table.jst.eco @@ -2,10 +2,10 @@ <% if @sortable: %> - + <% end %> <% if @checkbox: %> - +