fix missing existence check
This commit is contained in:
parent
a522c02a36
commit
08e2f07877
@ -33,17 +33,20 @@ $(document).ready(function(){
|
||||
$hour = $('#countdown_dashboard').data('hour');
|
||||
$minute = $('#countdown_dashboard').data('minute');
|
||||
$second = $('#countdown_dashboard').data('second');
|
||||
$('#countdown_dashboard').countDown({
|
||||
targetDate: {
|
||||
'day': $day,
|
||||
'month': $month,
|
||||
'year': $year,
|
||||
'hour': $hour,
|
||||
'min': $minute,
|
||||
'sec': $second,
|
||||
},
|
||||
omitWeeks: true
|
||||
});
|
||||
|
||||
if ($('#countdown_dashboard').length > 0) {
|
||||
$('#countdown_dashboard').countDown({
|
||||
targetDate: {
|
||||
'day': $day,
|
||||
'month': $month,
|
||||
'year': $year,
|
||||
'hour': $hour,
|
||||
'min': $minute,
|
||||
'sec': $second,
|
||||
},
|
||||
omitWeeks: true
|
||||
});
|
||||
}
|
||||
|
||||
$(".about-slider").owlCarousel(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user