From 0109e81154ea945900e741b3f1b86ffe05856ae2 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Wed, 7 Oct 2020 16:30:51 +0200 Subject: [PATCH 1/4] Always select collectionlink item to the left --- modules/Collections/assets/field-collectionlink.tag | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/Collections/assets/field-collectionlink.tag b/modules/Collections/assets/field-collectionlink.tag index d7b308667..2b09ec6d5 100644 --- a/modules/Collections/assets/field-collectionlink.tag +++ b/modules/Collections/assets/field-collectionlink.tag @@ -103,7 +103,7 @@ - + - + -
@@ -112,19 +112,18 @@
+ + { App.Utils.dateformat( new Date( 1000 * entry._modified )) } - -
From 850d40588199bd04ccddea18c88da67be5b77a24 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Wed, 7 Oct 2020 16:37:01 +0200 Subject: [PATCH 2/4] Make select single collectionlink item into a button --- modules/Collections/assets/field-collectionlink.tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Collections/assets/field-collectionlink.tag b/modules/Collections/assets/field-collectionlink.tag index 2b09ec6d5..ed4c9ebcb 100644 --- a/modules/Collections/assets/field-collectionlink.tag +++ b/modules/Collections/assets/field-collectionlink.tag @@ -118,7 +118,7 @@ - + From ec1b6b2a8dcd225856cfb70d9e59a7acc2631832 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Fri, 27 Aug 2021 15:42:19 +0200 Subject: [PATCH 3/4] Added toggle all to collectionlink with multiple items --- modules/Collections/assets/field-collectionlink.tag | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/Collections/assets/field-collectionlink.tag b/modules/Collections/assets/field-collectionlink.tag index ed4c9ebcb..e3c40f482 100644 --- a/modules/Collections/assets/field-collectionlink.tag +++ b/modules/Collections/assets/field-collectionlink.tag @@ -103,7 +103,9 @@ - +
+ + @@ -460,6 +462,10 @@ } } } + + toggleAll(e) { + App.$(e.target).parents("table").find("tr>td input" + (e.target.checked ? ":not(:checked)" : ":checked")).click(); + } getDisplay(link) { From 1f21a684fa2a1398cf5a8e2a8196ca8fb8dbc505 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Fri, 27 Aug 2021 15:53:01 +0200 Subject: [PATCH 4/4] Make remove collectionlink multiple item link red --- modules/Collections/assets/field-collectionlink.tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Collections/assets/field-collectionlink.tag b/modules/Collections/assets/field-collectionlink.tag index e3c40f482..c1211d94e 100644 --- a/modules/Collections/assets/field-collectionlink.tag +++ b/modules/Collections/assets/field-collectionlink.tag @@ -44,7 +44,7 @@
  • -
    +
    { parent.getDisplay(l) }