Commit cc74878c9766e7dcf04c03fdaf65b8c419735e8c

Authored by Karpikau Andrei
1 parent 0471a130

change kanjai version

... ... @@ -185,12 +185,7 @@ module Kanjai
185 185 layer.gsub!(marker, js_array.join(''))
186 186 end
187 187 when '###INCLUDE_CSS_FILE###'
188   - if params[:format].to_s == 'pdf'
189   - css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}#{ActionController::Base.helpers.asset_path('kanjai/pdf.css')}"
190   - layer.gsub!(marker, '<link rel="stylesheet" href="'+ css_path +'">')
191   - else
192   - layer.gsub!(marker, '')
193   - end
  188 + layer.gsub!(marker, '')
194 189 else
195 190 #if PageMarker.public_instance_methods.include?("process_#{marker.gsub('###', '')}".to_sym)
196 191 # page_marker = PageMarker.new
... ... @@ -201,6 +196,11 @@ module Kanjai
201 196 end
202 197 end
203 198
  199 + if params[:format].to_s == 'pdf'
  200 + css_path = "#{$scheme}#{ADMIN_CONFIG['domain_name']}#{ActionController::Base.helpers.asset_path('kanjai/pdf.css')}"
  201 + layer.gsub!(/<\/head>/, '<link rel="stylesheet" href="'+ css_path +'"></head>')
  202 + end
  203 +
204 204 return layer
205 205
206 206 end
... ...
1 1 module Kanjai
2   - VERSION = "0.0.90"
  2 + VERSION = "0.0.91"
3 3 end
... ...