mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
related to #1609 badges with default values
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ $template->assign(
|
||||
|
||||
$template->assign('delay_before_autoOpen', $conf['album_move_delay_before_auto_opening']);
|
||||
|
||||
$template->assign("POS_PREF", $conf['newcat_default_position']);
|
||||
$template->assign("POS_PREF", $conf['newcat_default_position']); //TODO use user pref if it exists
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Album display |
|
||||
|
||||
@@ -68,6 +68,14 @@ $(document).ready(() => {
|
||||
var colors = ["icon-red", "icon-blue", "icon-yellow", "icon-purple", "icon-green"];
|
||||
var colorId = Number(node.id)%5;
|
||||
cont.find("span.icon-folder-open, span.icon-sitemap").addClass(colors[colorId]);
|
||||
|
||||
cont.find(".move-cat-title").after(
|
||||
"<div class='badge-container'>"
|
||||
+"<i class='icon-blue icon-sitemap'> aaaa </i>"
|
||||
+"<i class='icon-purple icon-picture'> aaaa </i>"
|
||||
+"<i class='icon-red icon-back-in-time'> aaaa </i>"
|
||||
+"</div>"
|
||||
)
|
||||
}
|
||||
|
||||
var url_split = window.location.href.split("#");
|
||||
|
||||
@@ -439,4 +439,11 @@ input[name="position"] {
|
||||
.order-root-button {
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
|
||||
.badge-container i {
|
||||
padding: 2px 6px 2px 4px!important;
|
||||
border-radius: 10px !important;
|
||||
font-size: 10px !important;
|
||||
margin: 0 2px !important;
|
||||
}
|
||||
</style>
|
||||
@@ -574,7 +574,9 @@ function ws_categories_add($params, &$service)
|
||||
|
||||
global $conf;
|
||||
|
||||
if ($params["position"] != "") {
|
||||
if ($params["position"] != "")
|
||||
{
|
||||
//TODO make persistent with user prefs
|
||||
$conf['newcat_default_position'] = $params["position"];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user