Tarea #1066 -> Descontar el nº de dedicatorias pendientes de ver según se vayan reproducciendo
git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@165 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
parent
55e9bb68bb
commit
c552bf2233
@ -104,8 +104,11 @@ function gp_ajax_video_data() {
|
||||
$salida .= '<span id="postdata-link-' . $video['id'] . '">' . $video['permalink']. '</span>';
|
||||
$salida .= '<span id="postdata-extlink-' . $video['id'] . '">' . $video['extlink']. '</span>';
|
||||
$salida .= '<span id="postdata-comments-' . $video['id'] . '"></span>';
|
||||
if (($theme_show_new_label) && ($video['unreadedid'])) {
|
||||
$salida .= '<span id="postdata-mark-read-' . $video['id'] . '">' . mar_read_unread_links('', '', false) . '</span>';
|
||||
|
||||
if ($video['unreaded']) {
|
||||
$salida .= '<span id="postdata-mark-read-' . $video['id'] . '">';
|
||||
$salida .= mar_read_unread_links('', '', false);
|
||||
$salida .= '</span>';
|
||||
}
|
||||
$salida .= '<span id="postdata-from-to-' . $video['id'] . '">';
|
||||
$salida .= $video['from_to_text'];
|
||||
|
||||
@ -166,7 +166,8 @@ function updateInfo() {
|
||||
);
|
||||
jQuery('#dedicationTitle').html(new_title);
|
||||
shrinkTitle();
|
||||
jQuery('#dedicationTitle a').jTypeWriter();
|
||||
jQuery('#dedicationTitle a').jTypeWriter();
|
||||
|
||||
|
||||
jQuery('#dedicationComments_container').slideUp(
|
||||
'fast',
|
||||
@ -187,14 +188,30 @@ function updateInfo() {
|
||||
}
|
||||
);
|
||||
jQuery('#dedicationComments_container').slideDown();
|
||||
|
||||
if(jQuery('#postdata-mark-read-' + id).length > 0) {
|
||||
jQuery('#postdata-mark-read-' + id + ' .mar_mark_as_read').click();
|
||||
jQuery('#postdata-mark-read-' + id).remove();
|
||||
|
||||
if(jQuery('#postdata-mark-read-' + id).length > 0) {
|
||||
markAsRead(id);
|
||||
jQuery('#postdata-mark-read-' + id).remove();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function markAsRead(id) {
|
||||
var post_id = id;
|
||||
var data = {
|
||||
action: 'mark_post_as_read',
|
||||
post_read: post_id
|
||||
};
|
||||
jQuery.post(mark_as_read_js.ajaxurl, data, function(response) {
|
||||
if(mark_as_read_js.show_alerts == '1') {
|
||||
alert(read_message);
|
||||
}
|
||||
jQuery('#header .navmenu .profile .sign').text(jQuery('#header .navmenu .profile .sign').text()-1);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function shrinkTitle()
|
||||
{
|
||||
var textH1 = document.getElementById("dedicationTitle");
|
||||
|
||||
@ -9,7 +9,8 @@ var aIndex=-1,oUrl="";
|
||||
function updateInfo(){var a=jQuery.fn.videoGallery.getMediaID(),a=jQuery(jQuery("#playlist li").get(a)).attr("id").replace("playlist-element-","");if(aIndex!=a&&0<=a){aIndex=a;""==oUrl&&(oUrl=jQuery("#dedicate_this_song_button").attr("href"));var b=jQuery("#postdata-id-"+a).text(),e=jQuery("#postdata-title-"+a).html(),c=jQuery("#postdata-from-to-"+a).html(),f=jQuery("#postdata-artist-"+a).html(),g=jQuery("#postdata-song-"+a).html(),h=jQuery("#postdata-link-"+a).html(),d=jQuery("#postdata-extlink-"+a).html(),
|
||||
b=oUrl+"id/"+b;jQuery("#dedicate_this_song_button").attr("href",b);jQuery("#fsbbtn a").attr("href","https://www.facebook.com/sharer.php?u="+d);jQuery("#twtbtn a").attr("href","http://twitter.com/intent/tweet?source=sharethiscom&url="+d);jQuery("#gpsbtn a").attr("href","https://plusone.google.com/_/+1/confirm?url="+d);jQuery("#mysbtn a").attr("href",'javascript:void(window.open("http://www.myspace.com/Modules/PostTo/Pages/?u='+d+'"+encodeURIComponent(document.location.toString()),"ptm","height=450,width=550").focus())');
|
||||
jQuery("#dedication-data-panel").hide("fast");jQuery("#dedication-data-panel").slideUp("fast",function(){jQuery("#dedication-data-panel").html(c);jQuery("#dedicationTitle-data-panel").html(c)});jQuery("#dedication-data-panel").slideDown();jQuery("#dedicationFooter_container").slideUp("fast",function(){jQuery("#dedicationArtits").html(f);jQuery("#dedicationSong").html(g)});jQuery("#dedicationFooter_container").slideDown("fast",function(){});jQuery("#dedicationTitle").html(e);shrinkTitle();jQuery("#dedicationTitle a").jTypeWriter();
|
||||
jQuery("#dedicationComments_container").slideUp("fast",function(){jQuery("#dedicationComments_container").load(h+" #comments","",function(){init_comments();jQuery("#dedicationComments_container").on("submit","#commentform",function(){prepare_new_comment_home();return!1})})});jQuery("#dedicationComments_container").slideDown();0<jQuery("#postdata-mark-read-"+a).length&&(jQuery("#postdata-mark-read-"+a+" .mar_mark_as_read").click(),jQuery("#postdata-mark-read-"+a).remove())}}
|
||||
jQuery("#dedicationComments_container").slideUp("fast",function(){jQuery("#dedicationComments_container").load(h+" #comments","",function(){init_comments();jQuery("#dedicationComments_container").on("submit","#commentform",function(){prepare_new_comment_home();return!1})})});jQuery("#dedicationComments_container").slideDown();0<jQuery("#postdata-mark-read-"+a).length&&(markAsRead(a),jQuery("#postdata-mark-read-"+a).remove())}}
|
||||
function markAsRead(a){jQuery.post(mark_as_read_js.ajaxurl,{action:"mark_post_as_read",post_read:a},function(){"1"==mark_as_read_js.show_alerts&&alert(read_message);jQuery("#header .navmenu .profile .sign").text(jQuery("#header .navmenu .profile .sign").text()-1)});return!1}
|
||||
function shrinkTitle(){var a=document.getElementById("dedicationTitle"),b=document.getElementById("dedicationTitle_container");for(a.style.fontSize="42px";a.offsetWidth>b.offsetWidth;)size=parseInt(a.style.fontSize.replace("px","")),size-=1,a.style.fontSize=size+"px";a.style.fontSize-=NaN}
|
||||
jQuery(window).ready(function(){0<jQuery("#slider-wrapper").length&&jQuery("#content-wrapper .post-loop .post-thumbnail a").live("click",function(a){a.preventDefault();a=jQuery(this).parent().parent();a=jQuery(a).attr("class").split(" ");jQuery(a).each(function(a,e){var c=e.replace("post-","");if(jQuery.isNumeric(c))return loadVideo(c),jQuery("html, body").animate({scrollTop:0},600),!1});return!1})});
|
||||
jQuery(document).ready(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").hide();jQuery("#sidebar .sidebarposts .top_10 h3").click(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").toggle("slow",function(){})})});jQuery(document).ready(function(){jQuery("#my-friends-big-avatars div.see_more").hide();jQuery("#my-friends-big-avatars span.see_more").click(function(){jQuery("#my-friends-big-avatars span.see_more").hide();jQuery("#my-friends-big-avatars div.see_more").toggle("fast",function(){})})});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user