From 57f8dd5c36974123d9a79eb902405379206ace0d Mon Sep 17 00:00:00 2001 From: "Willy \"Linty" Date: Wed, 8 Nov 2023 11:57:17 +0100 Subject: [PATCH] Issue #2033 Redesign open in gallery buttons --- admin/themes/default/js/picture_modify.js | 3 +- admin/themes/default/template/cat_modify.tpl | 14 ++- .../default/template/picture_modify.tpl | 31 ++++- admin/themes/default/theme.css | 107 +++++++++++++++++- admin/themes/roma/theme.css | 10 ++ 5 files changed, 151 insertions(+), 14 deletions(-) diff --git a/admin/themes/default/js/picture_modify.js b/admin/themes/default/js/picture_modify.js index 38d200b67..6e462f414 100644 --- a/admin/themes/default/js/picture_modify.js +++ b/admin/themes/default/js/picture_modify.js @@ -60,6 +60,7 @@ function fill_results(cats) { function remove_related_category(cat_id) { $(".invisible-related-categories-select option[value="+ cat_id +"]").remove(); + $(".invisible-related-categories-select").trigger('change'); $("#" + cat_id).parent().remove(); cat_to_remove_index = related_categories_ids.indexOf(cat_id); @@ -80,7 +81,7 @@ function add_related_category(cat_id, cat_link_path) { $(".search-result-item #" + cat_id).addClass("notClickable"); related_categories_ids.push(cat_id); - $(".invisible-related-categories-select").append(""); + $(".invisible-related-categories-select").append("").trigger('change'); $("#"+ cat_id).on("click", function () { remove_related_category($(this).attr("id")) diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl index 4ee6aaaf6..c9280cac2 100644 --- a/admin/themes/default/template/cat_modify.tpl +++ b/admin/themes/default/template/cat_modify.tpl @@ -48,9 +48,6 @@ str_root = '{'Root'|@translate}';
- {if cat_admin_access($CAT_ID)} - - {/if} {if isset($U_MANAGE_ELEMENTS) } @@ -183,10 +180,19 @@ str_root = '{'Root'|@translate}';
+