mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 12612: Implement 'view all' pre-filter
Example:
detailView: {
...
viewAll: {
...
preFilter: {
// Return true to show button; false to hide
return false;
}
}
}
This commit is contained in:
parent
d99c0d5528
commit
62b571a528
@ -731,7 +731,14 @@
|
||||
}).prependTo($firstRow.closest('div.detail-group').closest('.details'));
|
||||
|
||||
// 'View all' button
|
||||
if (detailViewArgs.viewAll) {
|
||||
var showViewAll = detailViewArgs.viewAll ?
|
||||
(
|
||||
detailViewArgs.viewAll.preFilter ?
|
||||
detailViewArgs.viewAll.preFilter({
|
||||
context: context
|
||||
}) : true
|
||||
) : true;
|
||||
if (detailViewArgs.viewAll && showViewAll) {
|
||||
$('<div>')
|
||||
.addClass('view-all')
|
||||
.append(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user