16 lines
449 B
JavaScript
16 lines
449 B
JavaScript
|
function displayError(error){
|
||
|
$('body').append('<div id="ajax_confirmation" class="error_antadismarketing" style="z-index:8020;"><div class="error" style="z-index:8021;">'+error+'</div></div>');
|
||
|
setTimeout(function(){
|
||
|
$('.error_antadismarketing').remove();
|
||
|
}, 5000);
|
||
|
}
|
||
|
|
||
|
function runCheckbox(elem){
|
||
|
var class_fields = $(elem).attr('id');
|
||
|
if($(elem).is(':checked')) {
|
||
|
$('.'+class_fields).show();
|
||
|
}
|
||
|
else {
|
||
|
$('.'+class_fields).hide();
|
||
|
}
|
||
|
}
|