mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !426 from Break/N/A
commit
7f71208685
|
|
@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
if (val != '') {
|
if (val != '') {
|
||||||
$("ul.sidebar-menu li a[addtabs]:not([href^='javascript:;'])").each(function () {
|
$("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) {
|
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) {
|
if (html.length >= 100) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue