mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1614 fixed bug when removing a related cat
This commit is contained in:
committed by
Matthieu Leproux
parent
66bd06176c
commit
238cee07e8
@@ -108,7 +108,11 @@ function fill_results(cats) {
|
||||
function remove_related_category(cat_id) {
|
||||
$(".invisible-related-categories-select option[value="+ cat_id +"]").remove();
|
||||
$("#" + cat_id).parent().remove();
|
||||
related_categories_ids.pop(cat_id);
|
||||
|
||||
cat_to_remove_index = related_categories_ids.indexOf(cat_id);
|
||||
if (cat_to_remove_index > -1) {
|
||||
related_categories_ids.splice(cat_to_remove_index, 1);
|
||||
}
|
||||
|
||||
check_related_categories();
|
||||
}
|
||||
|
||||
@@ -6260,7 +6260,7 @@ color:#FF7B00;
|
||||
|
||||
.linked-albums-badge {
|
||||
padding: 2px 6px;
|
||||
background: #F1F1F1;
|
||||
background: #DBDBDB;
|
||||
border-radius: 50px;
|
||||
font-size: 10px;
|
||||
transition: 0.3s;
|
||||
@@ -6283,6 +6283,12 @@ color:#FF7B00;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.breadcrumb-item:hover {
|
||||
background: #ffd7ad;
|
||||
}
|
||||
.breadcrumb-item:hover .icon-cancel-circled{
|
||||
color: black;
|
||||
}
|
||||
|
||||
.breadcrumb-item a {
|
||||
padding: 0 5px;
|
||||
@@ -6481,4 +6487,13 @@ color:#FF7B00;
|
||||
color: #777;
|
||||
background: #fff;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.search-result-item .item-add:hover {
|
||||
color: #ff7700;
|
||||
}
|
||||
|
||||
.search-result-item .notClickable {
|
||||
opacity: 0.3;
|
||||
color: black !important;
|
||||
}
|
||||
@@ -513,7 +513,7 @@ SELECT SQL_CALC_FOUND_ROWS id, name, comment, uppercats, global_rank, dir, statu
|
||||
|
||||
$cat_display_name = get_cat_display_name_cache(
|
||||
$row['uppercats'],
|
||||
get_root_url().'admin.php?page=album-'
|
||||
'admin.php?page=album-'
|
||||
);
|
||||
|
||||
$row['name'] = strip_tags(
|
||||
|
||||
Reference in New Issue
Block a user