forked from saurabh/orbit4-5
mod for ad_banner
This commit is contained in:
parent
d836ded7f3
commit
f13312ddb6
|
@ -0,0 +1,8 @@
|
||||||
|
(function($) {
|
||||||
|
$("document").ready(function(){
|
||||||
|
// Get link data-attribute and make the banner clickable
|
||||||
|
$('.w-ad-banner__slide').not('[data-link=""]').addClass('cursor').on("click",function(){
|
||||||
|
window.open($(this).data("link"),"_blank");
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}(jQuery));
|
|
@ -447,7 +447,7 @@ class PagesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_edit_mode
|
def set_edit_mode
|
||||||
@dataApi = nil
|
@dataApi = "frontend"
|
||||||
@editmode = false
|
@editmode = false
|
||||||
if !current_user.nil? and current_user.is_admin?
|
if !current_user.nil? and current_user.is_admin?
|
||||||
if params[:editmode] == "on"
|
if params[:editmode] == "on"
|
||||||
|
|
Loading…
Reference in New Issue