Needle Arts (5301 Canal Blvd., 832-3050), a knitting, yarn and needlepoint supply shop, recently moved from Metairie Road to Canal Boulevard.
'); } var url = "/gyrobase/needle-arts-has-moved/Content"; var myStart = jQuery(this).attr("id") == "sortSelect" ? "1" : jQuery(this).attr("rel"); var showAllComments = jQuery(this).attr("id") == "showAllComments" ? "yes" : "no"; var params = { oid: "2008435", sort: jQuery("#sortSelect").val(), ajaxComponent: componentId, startIndex: myStart, showAll: showAllComments }; jQuery.ajax({ url: url, data: (params), dataType: "html", success: function (data) { jQuery("#"+componentId+"_PaginationBottom").remove(); if (myStart == "1") jQuery("#"+componentId+"_commentContent").html(data); else jQuery("#"+componentId+"_commentContent").append(data); } }); }; function doLikeComment(e){ e.preventDefault(); if (!this.clicked){ var oid = jQuery(this).attr("data-commentOid"); jQuery("#Comments #"+oid+"_likeLinks a").addClass("dimmed").css("opacity","0.4").each(function(){this.clicked = true;}); var myCurrentLikes = jQuery("#"+oid+"_rating_likes").html() || 0; var myCurrentDislikes = jQuery("#"+oid+"_rating_dislikes").html() || 0; var thisRating = jQuery(this).attr("rel"); if (thisRating == "Like"){ myCurrentLikes = parseFloat(myCurrentLikes)+1; } else { myCurrentDislikes = parseFloat(myCurrentDislikes)+1; } var myNewLine = '' + myCurrentLikes + ' like'; if (myCurrentLikes != 1) { myNewLine += 's'; } myNewLine += ', ' + '' + myCurrentDislikes + ' dislike'; if (myCurrentDislikes != 1) { myNewLine += "s"; } jQuery("#"+oid+"_rating_sub").html(myNewLine); jQuery("#"+oid+"_rating_sub").show(); var params = { oid: oid, rating: thisRating }; jQuery.ajax({ url: "/gyrobase/Tools/AjaxLike", type: "POST", data: (params), success: function (data) { jQuery("#"+oid+"_rating_sub").html(data); if (thisRating == "Like"){ jQuery("#Comments #"+oid+"_likeLinks a.dislike").removeClass("dimmed").css("opacity","1").each(function(){this.clicked = false;}); } else { jQuery("#Comments #"+oid+"_likeLinks a.like").removeClass("dimmed").css("opacity","1").each(function(){this.clicked = false;}); } } }); } } function reportComment(e){ e.preventDefault(); e.stopPropagation(); var oid = jQuery(this).attr("rel"); var elem = jQuery("#"+oid+"_report"); elem.click(function(e){e.stopPropagation();}) if (!elem.is(":visible")){ jQuery("#Comments .reportCommentContainer").hide(); if (elem.is(":empty")){ var params = { oid: oid, ajaxComponent: "ReportComment" }; jQuery.ajax({ url: "/gyrobase/Tools/ReportComment", data: (params), success: function (data) { elem.html(data); elem.fadeIn("fast"); } }); } else { elem.fadeIn("fast"); } } // attach close event handler to the html jQuery("html").one("click", function(){ jQuery("#Comments .reportCommentContainer:visible").hide(); }); } function closeReport(obj){ jQuery(obj).closest(".reportCommentContainer").fadeOut("fast"); } function submitReport(e){ var params = jQuery(e).closest("form").serialize()+"&ajaxComponent=ReportComment"; jQuery.ajax({ url: "/gyrobase/Tools/ReportComment", type: "POST", data: (params), success: function (data) { jQuery(e).closest(".reportCommentContainer").html(data); } }); } (function($) { var subscribed=false; function showFollowPanel(e){ e.preventDefault(); myPanel = $(this).parent().next(".togglePanel"); myPanel.fadeIn("fast"); } function doSubscribe(obj){ var myPanel = obj.parent().next(".togglePanel"); myPanel.fadeIn("fast"); if (!subscribed){ var myLink = obj.parent(); var myLoader = myPanel.children(".loading"); var myUpdater = myPanel.children(".ajaxUpdater"); var params = { object: myPanel.attr("data-toolsoid"), macro: myPanel.attr("data-toolsajaxmacro"), url: window.location }; $.ajax({ url: "/gyrobase/Macros/ToolsAjax", data: (params), type: "POST", dataType: "html", success: function (data) { subscribed = true; if (myUpdater){ myUpdater.html(data); myLoader.fadeOut("fast", function(){ myUpdater.fadeIn("fast", function(){ setTimeout(function(){ myPanel.fadeOut("fast"); }, 3000); }); }); } else { myPanel.fadeOut("fast"); } } }); } } function activateSubscribe(e){ e.preventDefault(); var myObj = $(this); var isAuthenticated = Foundation.SessionManager.sharedSessionManager().isAuthenticated(); if (!isAuthenticated){ new Foundation.Login.Dialog({ "feelingShy": false, "callback": function(){doSubscribe(myObj);} }); return false; } else { // Proceed doSubscribe(myObj); } } $("#Comments").on('click', ".bottomOptionBar a#doSubscribe", activateSubscribe); $("#Comments").on('click', ".bottomOptionBar a.togglePanelClose", function(){$(this).parent().fadeOut("fast"); return false;}); })(jQuery); jQuery(document).ready(function($){ $("#Comments").on('click', '#showMoreComments,#showAllComments', getMoreComments); $("#Comments #sortSelect").change(getMoreComments); $("#Comments").on('click', 'a.likeLink', doLikeComment); $("#Comments").on('click', 'a.reportCommentLink', reportComment); });restaurant week type 2 diabetes occupy congress juan williams victor martinez alcatraz cruise ship
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.