jQuery(function($){$("a.tip").tooltip();var a=!1;$(".wedoc-feedback-wrap").on("click","a",function(e){if(e.preventDefault(),!a){a=!0;var t=$(this),c=t.closest(".wedoc-feedback-wrap"),o={post_id:t.data("id"),type:t.data("type"),action:"wedocs_ajax_feedback",_wpnonce:wedocs.nonce};c.append('&nbsp; <i class="fa fa-refresh fa-spin"></i>'),$.post(wedocs.ajaxurl,o,function(e){c.html(e.data),a=!1})}}),$("#top-search-form .dropdown-menu").on("click","a",function(a){a.preventDefault();var e=$(this).attr("href").replace("#",""),t=$(this).text();$("#top-search-form span#search_concept").text(t),$(".input-group #search_param").val(e)})});