fix error
This commit is contained in:
parent
6d3683a98f
commit
aa865f04cd
|
@ -30,7 +30,7 @@ class AdBannersController < ApplicationController
|
|||
target = ""
|
||||
end
|
||||
if !b.out_link.blank?
|
||||
image_link += "\" style=\"cursor:pointer;\" onload=\"var el=this;(function(){if(el.parentElement==undefined||el.parentElement.tagName!='A'){el.outerHTML=('<a href=#{b.out_link} target=#{target}>'+el.outerHTML+'</a>');}})()\""
|
||||
image_link += "\" style=\"cursor:pointer;\" onload=\"var el=this;(function(){if((el.parentElement==undefined||el.parentElement.tagName!='A')&&$('<p>'+$(el).parents('.w-ba-banner__slide').eq(0).attr('data-overlay-template')+'</p>').find('a').length==0){el.outerHTML=('<a href=#{b.out_link} target=#{target}>'+el.outerHTML+'</a>');}})()\""
|
||||
end
|
||||
images << {
|
||||
"slide_number" => (i+1),
|
||||
|
|
Loading…
Reference in New Issue