Update text_marquees_controller.rb
let the text without url can't click
This commit is contained in:
parent
cfc1cc37a3
commit
53315f52f9
|
@ -1,5 +1,4 @@
|
||||||
class TextMarqueesController < ApplicationController
|
class TextMarqueesController < ApplicationController
|
||||||
|
|
||||||
def widget
|
def widget
|
||||||
subpart = OrbitHelper.get_current_widget
|
subpart = OrbitHelper.get_current_widget
|
||||||
marquee = Marquee.find(OrbitHelper.widget_custom_value)
|
marquee = Marquee.find(OrbitHelper.widget_custom_value)
|
||||||
|
@ -7,7 +6,8 @@ class TextMarqueesController < ApplicationController
|
||||||
{
|
{
|
||||||
"text" => mqt.title,
|
"text" => mqt.title,
|
||||||
"speed" => mqt.speed,
|
"speed" => mqt.speed,
|
||||||
"url" => (mqt.url || "")
|
"url" => (mqt.url || ""),
|
||||||
|
"content" => (mqt.url.nil? ? "<a speed='#{speed}'>#{mqt.title}</a>" : "<a href='#{mqt.url}' target='_blank' speed='#{speed}'>#{mqt.title}</a>")
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue