Various code cleanup.

This commit is contained in:
James Cole
2017-02-25 05:57:01 +01:00
parent 444439fdab
commit 8c6972d12d
35 changed files with 133 additions and 171 deletions

View File

@@ -79,7 +79,7 @@ function showDownload() {
function showError(text) {
"use strict";
$('#export-error').show();
$('#export-error>p').text(text);
$('#export-error').find('p').text(text);
}
function callExport() {

View File

@@ -24,7 +24,7 @@ $(function () {
$('.addMoney').on('click', addMoney);
$('.removeMoney').on('click', removeMoney);
$('#sortable-piggy tbody').sortable(
$('#sortable-piggy').find('tbody').sortable(
{
helper: fixHelper,
stop: stopSorting,

View File

@@ -29,10 +29,10 @@ $(function () {
{
locale: {
format: 'YYYY-MM-DD',
firstDay: 1,
firstDay: 1
},
minDate: minDate,
drops: 'up',
drops: 'up'
}
);

View File

@@ -300,7 +300,7 @@ function testRuleTriggers() {
}
// Show the modal dialog
$("#testTriggerModal").modal();
modal.modal();
}).fail(function () {
alert('Cannot get transactions for given triggers.');
});

View File

@@ -25,7 +25,7 @@ $(function () {
{
helper: fixHelper,
stop: sortStop,
cursor: "move",
cursor: "move"
}
);

View File

@@ -35,8 +35,7 @@ $(document).ready(function () {
function updateDescription() {
$.getJSON('json/transaction-journals/' + what).done(function (data) {
$('input[name="description"]').typeahead('destroy');
$('input[name="description"]').typeahead({source: data});
$('input[name="description"]').typeahead('destroy').typeahead({source: data});
});
}