Sha256: a830a85a0ab97f3b74cd35830a1c3deaf2ad6f069022dd839ae5f6229ae2559e
Contents?: true
Size: 1.5 KB
Versions: 4
Compression:
Stored size: 1.5 KB
Contents
//javascript for main activities input $("#activities_share_btn").hide(); title = "<%= t('activity.input') %>"; $("#input_activities").click(function(){ if(this.value == title){ this.value=""; $("#activities_share_btn").show(); } }); $("#input_activities").blur(function(){ if(this.value == ""){ this.value= title; $("#activities_share_btn").hide(); } }); //javascript for comments $(".input_new_comments").val("<%= t('comment.input') %>"); $(".activities_comment_btn").hide(); //usa livequery para usar el javascript luego de una accion con AJAX $(".input_new_comments").livequery("click",function(){ if(this.value == "<%= t('comment.input') %>"){ $(this).val(""); } $(".activities_comment_btn").hide(); $(this).parent(".new_comment").children(".activities_comment_btn").show(); }); $(".input_new_comments").livequery("blur",function(){ if(this.value == ""){ $(".activities_comment_btn").hide(); $(this).val("<%= t('comment.input') %>"); } }); $(".input_new_comments").click(function(){ if(this.value == "<%= t('comment.input') %>"){ $(this).val(""); } $(".activities_comment_btn").hide(); $(this).parent(".new_comment").children(".activities_comment_btn").show(); }); //javascript for tocomment option $(".to_comment").livequery("click", function(){ $(this).parents(".activity_content").find(".input_new_comments").click(); return false; }); $(".to_comment").livequery("blur", function(){ $(this).parents(".activity_content").find(".input_new_comments").blur(); return false; });
Version data entries
4 entries across 4 versions & 1 rubygems