mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-11-03 04:40:20 -06:00
Remove and clean up old code.
This commit is contained in:
1 parent
04fd97afcb
commit
4c29d34ef7
159 files changed
+452
-20844
No files matched your search
@@ -18,8 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr, currencies */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
$(".content-wrapper form input:enabled:visible:first").first().focus().select();
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr, currencies */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
$(".content-wrapper form input:enabled:visible:first").first().focus().select();
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
$("#ffInput_name").focus().select();
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
$(".content-wrapper form input:enabled:visible:first").first().focus().select();
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
var fixBillHelper = function (e, tr) {
|
||||
"use strict";
|
||||
var $originals = tr.children();
|
||||
|
||||
@@ -18,9 +18,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: specific */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
columnChart(specific, 'period-specific-period');
|
||||
});
|
||||
});
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: everything, current, specific */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
@@ -26,4 +25,4 @@ $(function () {
|
||||
columnChartCustomColours(everything, 'category-everything');
|
||||
columnChartCustomColours(specific, 'specific-period');
|
||||
|
||||
});
|
||||
});
|
||||
@@ -18,9 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: accounting */
|
||||
|
||||
|
||||
/**
|
||||
* Takes a string phrase and breaks it into separate phrases no bigger than 'maxwidth', breaks are made at complete words.
|
||||
* https://stackoverflow.com/questions/21409717/chart-js-and-long-labels
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: Chart, defaultChartOptions, accounting, defaultPieOptions, noDataForChart, todayText */
|
||||
var allCharts = {};
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: jobKey, Modernizr */
|
||||
|
||||
var intervalId = 0;
|
||||
|
||||
@@ -145,4 +144,4 @@ function checkStatus() {
|
||||
function putStatusText(status) {
|
||||
"use strict";
|
||||
$('#status-message').text(status);
|
||||
}
|
||||
}
|
||||
@@ -17,9 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: moment, token, dateRangeMeta,dateRangeConfig, accountingConfig, accounting, currencySymbol, mon_decimal_point, frac_digits, showFullList, showOnlyTop, mon_thousands_sep */
|
||||
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token, helpPageTitle, anonymous */
|
||||
$(function () {
|
||||
"use strict";
|
||||
$('#help').click(showHelp);
|
||||
|
||||
@@ -18,13 +18,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
// auto complete for object group.
|
||||
console.log('Object group auto complete thing.');
|
||||
|
||||
var inputElement = document.getElementById('ffInput_object_group');
|
||||
new BootstrapSimpleAutocomplete(inputElement, {
|
||||
fetchFunction: function (query) {
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
var fixGroupHelper = function (e, tr) {
|
||||
"use strict";
|
||||
var $originals = tr.children();
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
var fixPiggyHelper = function (e, tr) {
|
||||
"use strict";
|
||||
var $originals = tr.children();
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: piggyBankID, lineChart */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr, currencies */
|
||||
|
||||
var calendar;
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr, currencies */
|
||||
|
||||
var calendar;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: startDate, endDate, accountIds */
|
||||
function loadAjaxPartial(holder, url) {
|
||||
"use strict";
|
||||
$.get(url).done(function (data) {
|
||||
@@ -154,4 +153,4 @@ function clickBudgetChart(e) {
|
||||
var container = 'budget_chart';
|
||||
columnChart(URL, container);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: hideable */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: minDate, nonSelectedText, allSelectedText, filterPlaceholder, nSelectedText, selectAllText */
|
||||
|
||||
var defaultMultiSelect = {
|
||||
disableIfEmpty: true,
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: triggerCount, actionCount */
|
||||
|
||||
var autocompletes = {};
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
var fixHelper = function (e, tr) {
|
||||
"use strict";
|
||||
var $originals = tr.children();
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: Modernizr, askReadWarning */
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: zoomLevel, latitude, longitude, google */
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: edit_selected_txt, edit_bulk_selected_txt, delete_selected_txt, token */
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
|
||||
@@ -18,12 +18,61 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** global: what */
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
"use strict";
|
||||
initTagsAC();
|
||||
initCategoryAC();
|
||||
|
||||
// auto complete for tags
|
||||
// render tags:
|
||||
Tags.init('select.ac-tags', {
|
||||
allowClear: true,
|
||||
server: urls.tag,
|
||||
liveServer: true,
|
||||
clearEnd: true,
|
||||
labelField: 'tag',
|
||||
valueField: 'id',
|
||||
queryParam: 'query',
|
||||
allowNew: true,
|
||||
//serverDataKey: 'data',
|
||||
notFoundMessage: i18next.t('firefly.nothing_found'),
|
||||
noCache: true,
|
||||
fetchOptions: {
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').content
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// auto complete for category.
|
||||
var inputElement = document.getElementById('category-ac');
|
||||
new BootstrapSimpleAutocomplete(inputElement, {
|
||||
fetchFunction: function (query) {
|
||||
// Custom data fetching logic
|
||||
return fetch('api/v1/autocomplete/categories?_token=' + token + '&query=' + encodeURIComponent(query),
|
||||
{
|
||||
method: 'GET',
|
||||
credentials: 'include',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'X-CSRF-TOKEN': token
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
var result = [];
|
||||
for (var i in data) {
|
||||
if (data.hasOwnProperty(i)) {
|
||||
result.push(data[i].name);
|
||||
}
|
||||
}
|
||||
// Process data if needed
|
||||
return result;
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
// on change, remove the checkbox.
|
||||
$('input[name="category"]').change(function () {
|
||||
|
||||
Reference in new issue
Block a user