mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
User can now re-order triggers and actions.
This commit is contained in:
@@ -2,12 +2,16 @@
|
||||
|
||||
|
||||
// Return a helper with preserved width of cells
|
||||
var fixHelper = function (e, ui) {
|
||||
"use strict";
|
||||
ui.children().each(function () {
|
||||
$(this).width($(this).width());
|
||||
var fixHelper = function(e, tr)
|
||||
{
|
||||
var $originals = tr.children();
|
||||
var $helper = tr.clone();
|
||||
$helper.children().each(function(index)
|
||||
{
|
||||
// Set helper cell sizes to match the original sizes
|
||||
$(this).width($originals.eq(index).width());
|
||||
});
|
||||
return ui;
|
||||
return $helper;
|
||||
};
|
||||
|
||||
$(function () {
|
||||
|
||||
Reference in New Issue
Block a user