diff --git a/admin/albums.php b/admin/albums.php index 42fb4fc5c..6de2f0828 100644 --- a/admin/albums.php +++ b/admin/albums.php @@ -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 | diff --git a/admin/themes/default/js/albums.js b/admin/themes/default/js/albums.js index 13cccbf04..347bdf06e 100644 --- a/admin/themes/default/js/albums.js +++ b/admin/themes/default/js/albums.js @@ -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( + "
" + +" aaaa " + +" aaaa " + +" aaaa " + +"
" + ) } var url_split = window.location.href.split("#"); diff --git a/admin/themes/default/template/albums.tpl b/admin/themes/default/template/albums.tpl index d3acb94e2..e5e061499 100644 --- a/admin/themes/default/template/albums.tpl +++ b/admin/themes/default/template/albums.tpl @@ -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; +} \ No newline at end of file diff --git a/include/ws_functions/pwg.categories.php b/include/ws_functions/pwg.categories.php index 40b54a2bc..8e63616d2 100644 --- a/include/ws_functions/pwg.categories.php +++ b/include/ws_functions/pwg.categories.php @@ -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"]; }