mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed some sorting.
This commit is contained in:
parent
5953f691d1
commit
466e81d56a
@ -13,6 +13,7 @@ var fixHelper = function (e, ui) {
|
|||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
if (typeof(lineChart) === "function" && typeof accountID !== 'undefined') {
|
if (typeof(lineChart) === "function" && typeof accountID !== 'undefined') {
|
||||||
|
|
||||||
lineChart('chart/account/' + accountID, 'overview-chart');
|
lineChart('chart/account/' + accountID, 'overview-chart');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,6 +27,8 @@ $(function () {
|
|||||||
handle: '.handle'
|
handle: '.handle'
|
||||||
}
|
}
|
||||||
).disableSelection();
|
).disableSelection();
|
||||||
|
} else {
|
||||||
|
console.log('its null');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -34,6 +37,7 @@ $(function () {
|
|||||||
function sortStop(event, ui) {
|
function sortStop(event, ui) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var current = $(ui.item);
|
var current = $(ui.item);
|
||||||
|
console.log('sort stop');
|
||||||
var thisDate = current.data('date');
|
var thisDate = current.data('date');
|
||||||
var originalBG = current.css('backgroundColor');
|
var originalBG = current.css('backgroundColor');
|
||||||
|
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
/* globals $, lineChart, token, piggyBankID */
|
/* globals $, lineChart, token, piggyBankID */
|
||||||
|
|
||||||
// Return a helper with preserved width of cells
|
// Return a helper with preserved width of cells
|
||||||
var fixHelper = function (e, tr) {
|
var fixHelper = function (e, ui) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var $originals = tr.children();
|
ui.children().each(function () {
|
||||||
var $helper = tr.clone();
|
$(this).width($(this).width());
|
||||||
$helper.children().each(function (index) {
|
|
||||||
// Set helper cell sizes to match the original sizes
|
|
||||||
$(this).width($originals.eq(index).width());
|
|
||||||
});
|
});
|
||||||
return $helper;
|
return ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{ journals.render|raw }}
|
{{ journals.render|raw }}
|
||||||
|
|
||||||
<table class="table table-hover">
|
<table class="table table-hover {% if sorting %}sortable-table{% endif %}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="ignore">
|
<tr class="ignore">
|
||||||
<th class="hidden-xs" colspan="2"> </th>
|
<th class="hidden-xs" colspan="2"> </th>
|
||||||
|
Loading…
Reference in New Issue
Block a user