mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 10:48:13 +00:00
Various code cleanup.
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -29,10 +29,10 @@ $(function () {
|
||||
{
|
||||
locale: {
|
||||
format: 'YYYY-MM-DD',
|
||||
firstDay: 1,
|
||||
firstDay: 1
|
||||
},
|
||||
minDate: minDate,
|
||||
drops: 'up',
|
||||
drops: 'up'
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ function testRuleTriggers() {
|
||||
}
|
||||
|
||||
// Show the modal dialog
|
||||
$("#testTriggerModal").modal();
|
||||
modal.modal();
|
||||
}).fail(function () {
|
||||
alert('Cannot get transactions for given triggers.');
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ $(function () {
|
||||
{
|
||||
helper: fixHelper,
|
||||
stop: sortStop,
|
||||
cursor: "move",
|
||||
cursor: "move"
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user