diff --git a/app/controllers/web_resources_controller.rb b/app/controllers/web_resources_controller.rb index e4f851d..f662044 100644 --- a/app/controllers/web_resources_controller.rb +++ b/app/controllers/web_resources_controller.rb @@ -22,7 +22,7 @@ class WebResourcesController < ApplicationController end desc = link.image_description desc = (desc.blank? ? "web resource image" : desc) - display_image = link.image.thumb.url.blank? ? 'style="display: none;"' : '' + display_image = link.image.thumb.url.blank? ? ' hide' : '' { "title" => link.title, "title_text" => text, @@ -66,7 +66,7 @@ class WebResourcesController < ApplicationController end desc = link.image_description desc = (desc.blank? ? "web resource image" : desc) - display_image = link.image.thumb.url.blank? ? 'style="display: none;"' : '' + display_image = link.image.thumb.url.blank? ? ' hide' : '' { "title" => link.title, "title_text" => text, diff --git a/modules/web_resource/_web_res_widget1.html.erb b/modules/web_resource/_web_res_widget1.html.erb index dad8a43..80c965b 100644 --- a/modules/web_resource/_web_res_widget1.html.erb +++ b/modules/web_resource/_web_res_widget1.html.erb @@ -4,7 +4,7 @@