diff --git a/wp-content/themes/score/lib/scripts/custom-ajax.js b/wp-content/themes/score/lib/scripts/custom-ajax.js index e6dfde4..4c6d131 100644 --- a/wp-content/themes/score/lib/scripts/custom-ajax.js +++ b/wp-content/themes/score/lib/scripts/custom-ajax.js @@ -1,21 +1,3 @@ -jQuery(window).ready(function() { - - jQuery('.controls_prev').bind('click', function(){ - jQuery.fn.videoGallery.previousMedia(); - return false; - }); - jQuery('.controls_next').bind('click', function(){ - if (jQuery.fn.videoGallery.isLastMedia()) { - loadVideo(0); - } else { - jQuery.fn.videoGallery.nextMedia(); - } - return false; - }); - - return false; -}); - function loadVideo(videoid) { jQuery.ajax({ type:'POST', diff --git a/wp-content/themes/score/lib/scripts/custom-ajax.min.js b/wp-content/themes/score/lib/scripts/custom-ajax.min.js index b3cab96..310a484 100644 --- a/wp-content/themes/score/lib/scripts/custom-ajax.min.js +++ b/wp-content/themes/score/lib/scripts/custom-ajax.min.js @@ -1 +1 @@ -jQuery(window).ready(function(){jQuery(".controls_prev").bind("click",function(){jQuery.fn.videoGallery.previousMedia();return!1});jQuery(".controls_next").bind("click",function(){jQuery.fn.videoGallery.isLastMedia()?loadVideo(0):jQuery.fn.videoGallery.nextMedia();return!1});return!1}); function loadVideo(a){jQuery.ajax({type:"POST",data:{postCommentNonce:MyAjax.postCommentNonce,action:"gp_video_data",id:a},url:ajaxurl,success:function(a){jQuery("#playlist").append(a);jQuery.fn.videoGallery.inputPlaylist("playlist")}});return!1}function activePlaylist(a){jQuery.fn.videoGallery.destroyMedia();jQuery.fn.videoGallery.inputPlaylist(a);return!1}; \ No newline at end of file +function loadVideo(a){jQuery.ajax({type:"POST",data:{postCommentNonce:MyAjax.postCommentNonce,action:"gp_video_data",id:a},url:ajaxurl,success:function(a){jQuery("#playlist").append(a);jQuery.fn.videoGallery.inputPlaylist("playlist")}});return!1}function activePlaylist(a){jQuery.fn.videoGallery.destroyMedia();jQuery.fn.videoGallery.inputPlaylist(a);return!1}; \ No newline at end of file