mirror of https://gitee.com/karson/fastadmin.git
优化分类展开
parent
ed2f472e35
commit
fad64c36f0
|
|
@ -50,7 +50,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function
|
||||||
search: false,
|
search: false,
|
||||||
commonSearch: false,
|
commonSearch: false,
|
||||||
rowAttributes: function (row, index) {
|
rowAttributes: function (row, index) {
|
||||||
return row.pid == 0 ? {} : {style: "display:none"};
|
var expanded = $(".btn-toggle-all i").hasClass("fa-minus");
|
||||||
|
return row.pid == 0 || expanded ? {} : {style: "display:none"};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||||
search: false,
|
search: false,
|
||||||
commonSearch: false,
|
commonSearch: false,
|
||||||
rowAttributes: function (row, index) {
|
rowAttributes: function (row, index) {
|
||||||
return row.pid == 0 ? {} : {style: "display:none"};
|
var expanded = $(".btn-toggle-all i").hasClass("fa-minus");
|
||||||
|
return row.pid == 0 || expanded ? {} : {style: "display:none"};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue