From 3d8bc4db7f45a312590adfde8d0e1d3bef9edd72 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 31 Aug 2012 14:14:07 +0000 Subject: [PATCH] Tarea #1054 -> Mejorar el rendimiento de la web git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@162 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6 --- .../themes/score/lib/scripts/custom-ajax.js | 18 ------------------ .../score/lib/scripts/custom-ajax.min.js | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) 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