mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New mass delete form and options. #241
This commit is contained in:
@@ -29,7 +29,6 @@ $(document).ready(function () {
|
||||
function goToMassEdit() {
|
||||
"use strict";
|
||||
var checkedArray = getCheckboxes();
|
||||
console.log('Journals: ' + checkedArray);
|
||||
|
||||
// go to specially crafted URL:
|
||||
window.location.href = 'transactions/mass-edit/' + checkedArray;
|
||||
@@ -39,7 +38,6 @@ function goToMassEdit() {
|
||||
function goToMassDelete() {
|
||||
"use strict";
|
||||
var checkedArray = getCheckboxes();
|
||||
console.log('Journals: ' + checkedArray);
|
||||
|
||||
// go to specially crafted URL:
|
||||
window.location.href = 'transactions/mass-delete/' + checkedArray;
|
||||
@@ -63,7 +61,6 @@ function getCheckboxes() {
|
||||
function countChecked() {
|
||||
"use strict";
|
||||
var checked = $('.select_all_single:checked').length;
|
||||
console.log("Now " + checked + " selected.");
|
||||
if (checked > 0) {
|
||||
$('.mass_edit span').text(edit_selected_txt + ' (' + checked + ')')
|
||||
$('.mass_delete span').text(delete_selected_txt + ' (' + checked + ')')
|
||||
@@ -88,9 +85,11 @@ function stopMassSelect() {
|
||||
"use strict";
|
||||
|
||||
// uncheck all:
|
||||
$('input[name="select_all"]').prop('checked', false);
|
||||
uncheckAll();
|
||||
countChecked();
|
||||
|
||||
|
||||
// hide "select all" box in table header.
|
||||
$('.select_boxes').hide();
|
||||
|
||||
|
Reference in New Issue
Block a user