Various code cleanup

This commit is contained in:
James Cole
2017-08-12 07:47:42 +02:00
parent 81fb3df45e
commit 743547096e
39 changed files with 4885 additions and 3714 deletions

View File

@@ -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({

View File

@@ -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;
}
}

View File

@@ -10,7 +10,7 @@
$(function () {
"use strict";
if(!forceDemoOff) {
if (!forceDemoOff) {
$.getJSON(routeStepsUri).done(setupIntro)
}
});

View File

@@ -69,6 +69,7 @@ function removeMoney(e) {
return false;
}
function stopSorting() {
"use strict";
$('.loadSpin').addClass('fa fa-refresh fa-spin');

View File

@@ -39,7 +39,7 @@ $(function () {
);
// test rule triggers button:
$('.test_rule_triggers').click(testRuleTriggers);
$('.test_rule_triggers').click(testRuleTriggers);
}
);

View File

@@ -40,4 +40,5 @@ function initialize() {
marker.setMap(map);
}
}
google.maps.event.addDomListener(window, 'load', initialize);

View File

@@ -99,6 +99,7 @@ function checkAll() {
"use strict";
$('.select_all_single').prop('checked', true);
}
function uncheckAll() {
"use strict";
$('.select_all_single').prop('checked', false);