mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -06:00
Possible fix for #649 [skip ci]
This commit is contained in:
parent
3947da5e27
commit
aae4a78fd4
@ -41,7 +41,14 @@ function goToMassEdit() {
|
||||
var checkedArray = getCheckboxes();
|
||||
|
||||
// go to specially crafted URL:
|
||||
window.location.href = 'transactions/mass/edit/' + checkedArray;
|
||||
var bases = document.getElementsByTagName('base');
|
||||
var baseHref = null;
|
||||
|
||||
if (bases.length > 0) {
|
||||
baseHref = bases[0].href;
|
||||
}
|
||||
|
||||
window.location.href = baseHref + '/transactions/mass/edit/' + checkedArray;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -50,7 +57,13 @@ function goToMassDelete() {
|
||||
var checkedArray = getCheckboxes();
|
||||
|
||||
// go to specially crafted URL:
|
||||
window.location.href = 'transactions/mass/delete/' + checkedArray;
|
||||
var bases = document.getElementsByTagName('base');
|
||||
var baseHref = null;
|
||||
|
||||
if (bases.length > 0) {
|
||||
baseHref = bases[0].href;
|
||||
}
|
||||
window.location.href = baseHref + '/transactions/mass/delete/' + checkedArray;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user