Population-level decreases in alcohol, tobacco use could reduce cancer mortality – Healio

‘); $j(‘.topic-alert-section .dropdown-menu .auth’).hide(); $j(‘.topic-alert-section .dropdown-menu .anon’).hide(); $j(‘.topic-alert-section .dropdown-menu .subscribed’).show(); $j(‘.topic-alert-section .dropdown-menu’).removeClass(‘anon-dropdown’); $j(‘.topic-alert-section .dropdown-menu’).addClass(‘subscribed-dropdown’); $j(“.manage-alerts”).show(); } function TopicListAddSuccess() { $j(“.topic-alert-section”).removeClass(“open”); ShowAddedToAlerts(); AlertMemberAddedToList($j(“.dropdown-topic”).html().trim()); } function AddEmailToTopicList(button) { $j.fn.validator.Constructor.FOCUS_OFFSET = “0px”; $j(“.topic-alert-section”).validator(“validate”); if ($j(button).parents(“.topic-alert-section”).find(“.has-error”).length -1) { TopicListAddSuccess(); anonStoreLists(jData.listid); } else { $j(button).button(‘reset’); AlertUnsuccessfulSubscriptionUpdate() } }, error: function (jqXHR, textStatus, errorThrown) { //alert(textStatus); $j(button).button(‘reset’); AlertUnsuccessfulSubscriptionUpdate(); } }); } } function AddUserToTopicList(button) { var jData = {}; jData.contactid = window.UserProfile.contactid; jData.listid = $j(button).data(‘list’); jData.status = “2”; $j(button).button(‘loading’); $j.ajax({ type: “POST”, url: “/registration/json/managelistmember”, data: JSON.stringify(jData), contentType: “application/json; charset=utf-8”, dataType: “json”, success: function (msg) { var result = msg.ManageListMemberResult; if (result == “True”) { TopicListAddSuccess(); } else { $j(button).button(‘reset’); AlertUnsuccessfulSubscriptionUpdate(); } }, error: function (jqXHR, textStatus, errorThrown) { //alert(textStatus); $j(button).button(‘reset’); AlertUnsuccessfulSubscriptionUpdate(); } }); } function GetTopicIdAndStatus() { if(window.Context.docinfo.primarysubspecialty.length 0) { DisplayTopicAlertButtons(jsonresult); } else { //no topic list found return; } }, error: function (jqXHR, textStatus, errorThrown) { return; } }); } function DisplayTopicAlertButtons(json) { var loggedin = window.UserProfile.contactid.indexOf(‘00000000-0000-0000-0000-000000000000’) == -1; if(loggedin) $j.jStorage.flush(“EmailLists”); var topicname = json.Title; var topiclistid = json.ListId; var storedLists = getStoredLists(); if (loggedin) $j(‘.dropdown-menu .anon’).hide(); else { $j(‘.dropdown-menu .auth’).hide(); $j(‘.topic-alert-section .dropdown-menu’).addClass(‘anon-dropdown’); } if (json.Subscribed == “1” || (storedLists != null && storedLists.indexOf(topiclistid ) != -1)) { ShowAddedToAlerts(); } else { $j(‘.topic-alert-section .dropdown-menu .subscribed’).hide(); } $j(“.topic-alert-section”).slideDown(); $j(“.dropdown-topic”).html(topicname); $j(“.add-topic-button”).attr(“data-list”, topiclistid) var emailalert = $j(‘.email-alerts-top’).html(); $j(‘.email-alerts-bottom’).html(emailalert); $j(“.topic-alert-section”).validator(); $j(“.topic-alert-section”).validator(‘update’); $j(‘input.email-topic’).keypress(function (e) { if (e.keyCode == 13) { e.preventDefault(); $j(e.currentTarget).parents(‘.topic-alert-section’).find(‘.anon button.add-topic-button’).click(); } }); var i = 0; var t = 1; setInterval(function () { if (t) { $j(“.letter-image”).addClass(“hovered”); } else { $j(“.letter-image”).removeClass(“hovered”); } t = t ? 0 : 1; i++; if (i > 3) t = 0; }, 1500); $j(‘button.email-alerts’).on(‘click’, function (event) { $j(this).parent().toggleClass(‘open’); $j(this).parent().find(‘input.email-topic’).focus(); }); $j(‘body’).on(‘click’, function (e) { if (!$j(‘.topic-alert-section .dropdown-menu’).is(e.target) && $j(‘.topic-alert-section .dropdown-menu’).has(e.target).length === 0 && $j(‘.open’).has(e.target).length === 0 ) { $j(‘button.email-alerts’).parent().removeClass(‘open’); } }); } function getStoredLists() { if ($j.jStorage == null) return null;

Read More Here...

This entry was posted in Beer Alcohol Stocks News. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Trackbacks are closed, but you can post a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

Your email address will never be published.