mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Various code cleanup
This commit is contained in:
@@ -16,8 +16,8 @@ $(function () {
|
||||
configAccounting(currencySymbol);
|
||||
|
||||
// on submit of form, disable any button in form:
|
||||
$('form.form-horizontal').on('submit',function() {
|
||||
$('button[type="submit"]').prop('disabled',true);
|
||||
$('form.form-horizontal').on('submit', function () {
|
||||
$('button[type="submit"]').prop('disabled', true);
|
||||
});
|
||||
|
||||
$.ajaxSetup({
|
||||
|
||||
@@ -60,8 +60,6 @@ function failedJobImport(jqxhr, textStatus, error) {
|
||||
function reportOnJobImport(data) {
|
||||
|
||||
switch (data.status) {
|
||||
default:
|
||||
break;
|
||||
case "configured":
|
||||
// job is ready. Do not check again, just show the start-box. Hide the rest.
|
||||
$('.statusbox').hide();
|
||||
@@ -94,9 +92,10 @@ function reportOnJobImport(data) {
|
||||
$('.status_finished').show();
|
||||
// show text:
|
||||
$('#import-status-more-info').html(data.finishedText);
|
||||
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
if(!forceDemoOff) {
|
||||
if (!forceDemoOff) {
|
||||
$.getJSON(routeStepsUri).done(setupIntro)
|
||||
}
|
||||
});
|
||||
|
||||
@@ -69,6 +69,7 @@ function removeMoney(e) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function stopSorting() {
|
||||
"use strict";
|
||||
$('.loadSpin').addClass('fa fa-refresh fa-spin');
|
||||
|
||||
@@ -39,7 +39,7 @@ $(function () {
|
||||
);
|
||||
|
||||
// test rule triggers button:
|
||||
$('.test_rule_triggers').click(testRuleTriggers);
|
||||
$('.test_rule_triggers').click(testRuleTriggers);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -40,4 +40,5 @@ function initialize() {
|
||||
marker.setMap(map);
|
||||
}
|
||||
}
|
||||
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
|
||||
@@ -99,6 +99,7 @@ function checkAll() {
|
||||
"use strict";
|
||||
$('.select_all_single').prop('checked', true);
|
||||
}
|
||||
|
||||
function uncheckAll() {
|
||||
"use strict";
|
||||
$('.select_all_single').prop('checked', false);
|
||||
|
||||
Reference in New Issue
Block a user