mirror of https://gitee.com/karson/fastadmin.git
update public/assets/js/backend/index.js.
为搜索出来的结果加上图标,因为同名菜单挺多,都分散在不同菜单组中,显示图标可以用作区分 Signed-off-by: Break <breaker@wo.cn>pull/426/head
parent
f8292a8813
commit
7e8a28cabc
|
|
@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
|||
if (val != '') {
|
||||
$("ul.sidebar-menu li a[addtabs]:not([href^='javascript:;'])").each(function () {
|
||||
if ($("span:first", this).text().indexOf(val) > -1 || $(this).attr("py").indexOf(val) > -1 || $(this).attr("pinyin").indexOf(val) > -1) {
|
||||
html.push('<a data-url="' + $(this).attr("href") + '" href="javascript:;">' + $("span:first", this).text() + '</a>');
|
||||
html.push('<a data-url="' + $(this).attr("href") + '" href="javascript:;"><i class="'+ $('i:first', this).attr("class") +'"></i>' + $("span:first", this).text() + '</a>');
|
||||
if (html.length >= 100) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue