mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Add edit button for notes https://github.com/firefly-iii/firefly-iii/issues/5523
This commit is contained in:
@@ -35,6 +35,8 @@ $(function () {
|
||||
|
||||
$('.budget_amount').on('change', updateBudgetedAmount);
|
||||
$('.create_bl').on('click', createBudgetLimit);
|
||||
$('.edit_bl').on('click', editBudgetLimit);
|
||||
$('.show_bl').on('click', showBudgetLimit);
|
||||
$('.delete_bl').on('click', deleteBudgetLimit);
|
||||
|
||||
|
||||
@@ -216,6 +218,24 @@ function createBudgetLimit(e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function editBudgetLimit(e) {
|
||||
var button = $(e.currentTarget);
|
||||
var budgetLimitId = button.data('id');
|
||||
$('#defaultModal').empty().load(editBudgetLimitUrl.replace('REPLACEME', budgetLimitId.toString()), function () {
|
||||
$('#defaultModal').modal('show');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function showBudgetLimit(e) {
|
||||
var button = $(e.currentTarget);
|
||||
var budgetLimitId = button.data('id');
|
||||
$('#defaultModal').empty().load(showBudgetLimitUrl.replace('REPLACEME', budgetLimitId.toString()), function () {
|
||||
$('#defaultModal').modal('show');
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function deleteBudgetLimit(e) {
|
||||
e.preventDefault();
|
||||
var button = $(e.currentTarget);
|
||||
|
Reference in New Issue
Block a user