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
This commit is contained in:
parent
ab145ccae0
commit
3d8bc4db7f
@ -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) {
|
function loadVideo(videoid) {
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
type:'POST',
|
type:'POST',
|
||||||
|
|||||||
@ -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};
|
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};
|
||||||
Loading…
Reference in New Issue
Block a user