Author: Tammie Salvemini
}) .fail(function () { }) .always(function () { }); }) .rateit('value', document.getElementById("dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_hfRate").value) .rateit('readonly', isArticleRated) .rateit('step', 1); $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_upPanelComments').on('click', '#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lbAddComment', function () { var $lbAddComment = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lbAddComment'), noErrors = true, $authorNameInput = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_tbAddCommentName'), $authorEmailInput = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_tbAddCommentEmail'), $authorGDPRAgreement = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_cbShowCommentsGDPRComplianceAgreementRules'), authorName, authorEmail, comment = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_tbAddComment').val(), $noAuthorName = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblAddCommentNameError'), $no AuthorEmail = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblAddCommentEmailError'), $authorEmailNotValid = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblAddCommentEmailValid'), $noComment = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblAddCommentError'), $notValidCaptcha = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblCaptchaError'), $noauthorGDPRAgreement = $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_lblShowCommentsGDPRComplianceAgreementError'), emailRegex = /^(([^< >()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; if ($lbAddComment.data('disable')) return false; if ($authorNameInput.length > 0) { authorName = $authorNameInput.val(); $noAuthorName.css('display', 'none'); if (authorName == '') { $noAuthorName.css('display', 'block'); noErrors = false; } } if ($authorEmailInput.length > 0) { authorEmail = $authorEmailInput.val(); $noAuthorEmail.css('display', 'none'); $authorEmailNotValid.css('display', 'none'); if (authorEmail == '') { $noAuthorEmail.css('display', 'block'); noErrors = false; } else if (!emailRegex.test(authorEmail)) { $authorEmailNotValid.css('display', 'block'); noErrors = false; } } if ($authorGDPRAgreement.length > 0) { $noauthorGDPRAgreement.css('display', 'none'); if (!$authorGDPRAgreement[0].checked) { $noauthor GDPRAgreement.css('display', 'block'); noErrors = false; } } if ($('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_pnlCommentsCaptcha').length > 0) { var commentsCaptchaResponse = grecaptcha.getResponse(window.eds_commentsform_captchaId); if (commentsCaptchaResponse.length == 0) { $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_hfCommentsFormCaptchaResponse').val(''); $notValidCaptcha.css('display', 'block'); noErrors = false; } else { $('#dnn_ctr12969_ViewEasyDNNNewsMain_ctl00_hfCommentsFormCaptchaResponse').val(commentsCaptchaResponse); $notValidCaptcha.css('display', 'none'); } } if (comment == '') { $noComment.css('display', 'block'); noErrors = false; } else $noComment.css('display', 'none'); if (noErrors) $lbAddComment.data('disable', true); else return false; }); }); //*/ ]]>
var addthis_config = addthis_config ||{ }; addthis_config.lang = 'en'; addthis_config.ui_language = 'en';
Print
356
 
eds2_2(function ($) { $('#edn__contentBlock_12974').edNewsContentBlock({ websiteClientRoot: '/', portalId: 87, moduleId: 12974, tabId: 5764, itemsPerPage: 2, initialContentItemCount: 2, masonry: false }); });
Pre-Commercial Demonstration Success
Tuesday, 19 February 2019
Leigh Creek doctor service's last-gasp rescue

Expand/Collapse

Featured Content

|

CategoriesDemonstration project