/* 0) { messageBox.fadeOut('slow', function () { messageBox.removeAttr('class'); if (ret.type) { messageBox.addClass(ret.type); } messageBox.html(ret.text); messageBox.fadeIn(); }); } else { messageBox.fadeOut(undefined, function () { messageBox.remove(); }); } }, }); } }); // @deprecated, cannot find any place in project where this classname for event is used. // Probably can be safely removed in the future. jQuery('a.icl-admin-message-link').on('click', function (event) { if (typeof(event.preventDefault) !== 'undefined' ) { event.preventDefault(); } else { event.returnValue = false; } jQuery.post( ajaxurl, { action: 'icl-hide-admin-message', 'icl-admin-message-id': jQuery(this).parent().parent().attr('id'), nonce: icl_admin_notifier_strings.iclHideAdminMessageNonce, }, function (response) { } ); }); }); /*]]>*/