mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Clean up code.
This commit is contained in:
1
public/v1/js/ff/accounts/index.js
vendored
1
public/v1/js/ff/accounts/index.js
vendored
@@ -63,7 +63,6 @@ function stopSorting() {
|
||||
"use strict";
|
||||
$.each($('#sortable-table>tbody>tr.sortable-object'), function (i, v) {
|
||||
var holder = $(v);
|
||||
var parentBody = holder.parent();
|
||||
var position = parseInt(holder.data('position'));
|
||||
var originalOrder = parseInt(holder.data('order'));
|
||||
var id = holder.data('id');
|
||||
|
||||
3
public/v1/js/ff/charts.js
vendored
3
public/v1/js/ff/charts.js
vendored
@@ -45,12 +45,9 @@ var colourSet = [
|
||||
];
|
||||
|
||||
var fillColors = [];
|
||||
var strokePointHighColors = [];
|
||||
|
||||
|
||||
for (var i = 0; i < colourSet.length; i++) {
|
||||
fillColors.push("rgba(" + colourSet[i][0] + ", " + colourSet[i][1] + ", " + colourSet[i][2] + ", 0.5)");
|
||||
strokePointHighColors.push("rgba(" + colourSet[i][0] + ", " + colourSet[i][1] + ", " + colourSet[i][2] + ", 0.9)");
|
||||
}
|
||||
|
||||
Chart.defaults.global.legend.display = false;
|
||||
|
||||
1
public/v1/js/ff/index.js
vendored
1
public/v1/js/ff/index.js
vendored
@@ -108,7 +108,6 @@ function getBillsBox() {
|
||||
var unpaid = [];
|
||||
var paid = [];
|
||||
for (key in data) {
|
||||
var row = data[key];
|
||||
//console.log(key);
|
||||
if (key.substr(0, 16) === 'bills-unpaid-in-') {
|
||||
// only when less than 3.
|
||||
|
||||
2
public/v1/js/ff/reports/index.js
vendored
2
public/v1/js/ff/reports/index.js
vendored
@@ -51,7 +51,7 @@ $(function () {
|
||||
);
|
||||
|
||||
// set report type from cookie, if any:
|
||||
if (!(readCookie('report-type') === null)) {
|
||||
if (null !== readCookie('report-type')) {
|
||||
$('select[name="report_type"]').val(readCookie('report-type'));
|
||||
}
|
||||
|
||||
|
||||
3
public/v1/js/ff/rules/create-edit.js
vendored
3
public/v1/js/ff/rules/create-edit.js
vendored
@@ -252,9 +252,6 @@ function updateActionInput(selectList) {
|
||||
createAutoComplete(inputResult, 'api/v1/autocomplete/transactions');
|
||||
break;
|
||||
case 'set_source_account':
|
||||
console.log('Select list value is ' + selectList.val() + ', so input needs auto complete.');
|
||||
createAutoComplete(inputResult, 'api/v1/autocomplete/accounts');
|
||||
break;
|
||||
case 'set_destination_account':
|
||||
console.log('Select list value is ' + selectList.val() + ', so input needs auto complete.');
|
||||
createAutoComplete(inputResult, 'api/v1/autocomplete/accounts');
|
||||
|
||||
Reference in New Issue
Block a user