From 746d50d4593954c201bd12553b336afe4114972c Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 29 Jan 2016 17:53:49 +0100 Subject: [PATCH] Some javascript related cleaning up. --- public/js/rules/index.js | 31 +++++++++++++------------ resources/views/rules/index.twig | 2 +- resources/views/transactions/index.twig | 7 +----- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/public/js/rules/index.js b/public/js/rules/index.js index 25b812fecd..669769113b 100644 --- a/public/js/rules/index.js +++ b/public/js/rules/index.js @@ -20,23 +20,24 @@ var fixHelper = function (e, tr) { }; $(function () { - "use strict"; - $('.rule-triggers').sortable({ - helper: fixHelper, - stop: sortStop, - cursor: "move" + "use strict"; + $('.rule-triggers').sortable( + { + helper: fixHelper, + stop: sortStop, + cursor: "move", + } + ); - } - ); + $('.rule-actions').sortable( + { + helper: fixHelper, + stop: sortStop, + cursor: "move" - $('.rule-actions').sortable({ - helper: fixHelper, - stop: sortStop, - cursor: "move" - - } - ); - } + } + ); + } ); diff --git a/resources/views/rules/index.twig b/resources/views/rules/index.twig index 8798ec7a21..272ed57928 100644 --- a/resources/views/rules/index.twig +++ b/resources/views/rules/index.twig @@ -194,6 +194,6 @@ {% endblock %} {% block scripts %} - + {% endblock %} diff --git a/resources/views/transactions/index.twig b/resources/views/transactions/index.twig index 8cad789aee..1868c9bc4f 100644 --- a/resources/views/transactions/index.twig +++ b/resources/views/transactions/index.twig @@ -17,9 +17,4 @@ - -{% endblock %} -{% block scripts %} - - -{% endblock %} +{% endblock %} \ No newline at end of file