diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 955bb147..5a9dd5e2 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -226,8 +226,6 @@ function table($type) { $("#search").autoComplete({ minChars: 3, source: function(term, response) { - console.log(term); - // Prevent call inmediatly another ajax request try { searchXHR.abort(); } catch(e){} searchXHR = $.getJSON(HTML_PATH_ADMIN_ROOT+"ajax/content-list", { @@ -247,9 +245,13 @@ function table($type) { response(matches); }); }, - onSelect: function(e, term, item) { - var key = searchList[term]; - window.open("edit-content/"+key,"_self"); + renderItem: function (item, search) { + var key = searchList[item]; + html = '
'; + html += '
'+item+'
'; + html += '
Edit Visit
'; + html += '
'; + return html; } }); });