Skip to content

Firefly III: a personal finances manager

Fix #5134

James Coleb1b6ea9b1116
diff --git a/public/v1/js/ff/search/index.js b/public/v1/js/ff/search/index.js
index a7d298657c..8c22d08923 100644
--- a/public/v1/js/ff/search/index.js
+++ b/public/v1/js/ff/search/index.js
@@ -48,4 +48,6 @@ function presentSearchResults(data) {
updateListButtons();
+ // want to clone?
+ $('.clone-transaction').click(cloneTransaction);
}
\ No newline at end of file
diff --git a/resources/views/v1/search/index.twig b/resources/views/v1/search/index.twig
index 9350348511..4871b3f85e 100644
--- a/resources/views/v1/search/index.twig
+++ b/resources/views/v1/search/index.twig
@@ -145,6 +145,7 @@
var searchQuery = "{{ fullQuery|escape('js') }}";
var searchUri = "{{ route('search.search') }}?page={{ page }}";
var searchPage = {{ page }};
+ var cloneGroupUrl = '{{ route('transactions.clone') }}';
</script>
{# required for groups.twig #}
<script type="text/javascript" src="v1/js/ff/list/groups.js?v={{ FF_VERSION }}" nonce="{{ JS_NONCE }}"></script>