Moving assets and resources to the public folder
This commit is contained in:
523
public/fileadmin/templates/ext/cookie_control/res/js/cookieControl-5.0.min.js
vendored
Normal file
523
public/fileadmin/templates/ext/cookie_control/res/js/cookieControl-5.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('#cctoggle').live('click',function(){
|
||||
if(document.getElementById('cchide-popup').checked){
|
||||
CookieControl.setCookie('civicShowCookieIcon', 'no');$('#ccc-icon').hide()
|
||||
}
|
||||
if(jQuery(this).attr('class') == 'cctoggle-on'){
|
||||
jQuery.ajax({
|
||||
url: 'index.php',
|
||||
data: {
|
||||
eID: 'cookieDelete',
|
||||
tx_cookie_control_pi1: ({
|
||||
'in':2
|
||||
})
|
||||
},
|
||||
success: function(data) {
|
||||
CookieControl.reset();
|
||||
setTimeout(function(){window.location.reload()}, 500);
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
jQuery.ajax({
|
||||
url: 'index.php',
|
||||
data: {
|
||||
eID: 'cookieDelete',
|
||||
tx_cookie_control_pi1: ({
|
||||
'in': 1
|
||||
})
|
||||
},
|
||||
success: function(data) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
return false;
|
||||
});
|
||||
jQuery('#cookie_enable').bind('click',function(){
|
||||
CookieControl.setCookie('civicShowCookieIcon', 'yes');
|
||||
$('#cccwr').show();
|
||||
$('#ccc-icon').show();
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
$('#cccwr').hide()
|
||||
$('#ccc-icon').hide()
|
||||
},300000) ;
|
||||
});
|
||||
Reference in New Issue
Block a user