delete useless variable in link widget controller
This commit is contained in:
parent
03b29a7b4a
commit
0ab7041341
|
@ -27,10 +27,6 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
|
||||||
|
|
||||||
@widget_style = @part.widget_style
|
@widget_style = @part.widget_style
|
||||||
|
|
||||||
@category_id = @part.category
|
|
||||||
|
|
||||||
date_now = Time.now
|
|
||||||
|
|
||||||
if !params[:category_id].blank?
|
if !params[:category_id].blank?
|
||||||
@web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:category_id])
|
@web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:category_id])
|
||||||
else
|
else
|
||||||
|
@ -63,7 +59,7 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
|
||||||
end
|
end
|
||||||
|
|
||||||
@web_link_datas << { "title" => wlcg.title, "web_links" => web_link_datas } if !@web_links.blank?
|
@web_link_datas << { "title" => wlcg.title, "web_links" => web_link_datas } if !@web_links.blank?
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue