mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 11:48:53 +00:00
Finished category report.
This commit is contained in:
@@ -55,6 +55,10 @@ $(function () {
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// trigger list thing
|
||||
listLengthInitial();
|
||||
|
||||
});
|
||||
|
||||
function currencySelect(e) {
|
||||
@@ -108,3 +112,30 @@ accounting.settings = {
|
||||
decimal: "."
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
function listLengthInitial() {
|
||||
"use strict";
|
||||
$('.overListLength').hide();
|
||||
$('.listLengthTrigger').unbind('click').click(triggerList)
|
||||
}
|
||||
|
||||
function triggerList(e) {
|
||||
"use strict";
|
||||
var link = $(e.target);
|
||||
var table = link.parent().parent().parent().parent();
|
||||
console.log('data-hidden = ' + table.attr('data-hidden'));
|
||||
if (table.attr('data-hidden') === 'no') {
|
||||
// hide all elements, return false.
|
||||
table.find('.overListLength').hide();
|
||||
table.attr('data-hidden', 'yes');
|
||||
link.text(showFullList);
|
||||
return false;
|
||||
}
|
||||
// show all, return false
|
||||
table.find('.overListLength').show();
|
||||
table.attr('data-hidden', 'no');
|
||||
link.text(showOnlyTop);
|
||||
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user