From: Laury GvR Date: Fri, 1 Dec 2017 18:41:48 +0000 (-0500) Subject: Minor fix to previous commit. Also bump app.js version X-Git-Tag: v1.0.50^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=840daf75b49ba92a1d6a7316001d5239ae20e41a;p=WP-Themes%2Fpetoskeyarea.git Minor fix to previous commit. Also bump app.js version --- diff --git a/functions.php b/functions.php index 2460b24..3ffd5a8 100644 --- a/functions.php +++ b/functions.php @@ -104,7 +104,7 @@ function glm_site_scripts() wp_enqueue_script('jquery'); wp_enqueue_script( 'glm_foundation', - get_template_directory_uri() . '/js/app.js?v=1.0.48', + get_template_directory_uri() . '/js/app.js?v=1.0.50', 'jquery', '1.0', true diff --git a/js/app.js b/js/app.js index a473ea0..2472564 100644 --- a/js/app.js +++ b/js/app.js @@ -319,7 +319,7 @@ $(document).ready(function () { var video_container_desktop = document.getElementById( "front-page-video-container-desktop" ); var video_mobile = document.getElementById( "front-page-video-container-mobile-video" ); var video_desktop = document.getElementById( "front-page-video-container-desktop-video" ); - if ( $("#front-page-video-container-desktop").length > 0 || $("#front-page-video-container-mobile") ) { + if ( $("#front-page-video-container-desktop").length > 0 || $("#front-page-video-container-mobile").length > 0 ) { if( $(window).width() >= 640){ video_wrapper.removeChild(video_container_mobile); } else { @@ -336,7 +336,7 @@ $(document).ready(function () { video_desktop.play(); } } else { - if ( video_container_desktop.length && !document.getElementById( "front-page-video-container-mobile" )) { + if ( !document.getElementById( "front-page-video-container-mobile" )) { video_wrapper.appendChild(video_container_mobile); video_wrapper.removeChild(video_container_desktop); video_mobile = document.getElementById( "front-page-video-container-mobile-video" ); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index f8cb983..c1b8c8b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -310,7 +310,7 @@ $(document).ready(function () { var video_container_desktop = document.getElementById( "front-page-video-container-desktop" ); var video_mobile = document.getElementById( "front-page-video-container-mobile-video" ); var video_desktop = document.getElementById( "front-page-video-container-desktop-video" ); - if ( $("#front-page-video-container-desktop").length > 0 || $("#front-page-video-container-mobile") ) { + if ( $("#front-page-video-container-desktop").length > 0 || $("#front-page-video-container-mobile").length > 0 ) { if( $(window).width() >= 640){ video_wrapper.removeChild(video_container_mobile); } else { @@ -327,7 +327,7 @@ $(document).ready(function () { video_desktop.play(); } } else { - if ( video_container_desktop.length && !document.getElementById( "front-page-video-container-mobile" )) { + if ( !document.getElementById( "front-page-video-container-mobile" )) { video_wrapper.appendChild(video_container_mobile); video_wrapper.removeChild(video_container_desktop); video_mobile = document.getElementById( "front-page-video-container-mobile-video" );