fix(character/achievements): correctly show main categories' achievements

This commit is contained in:
Axel Cocat 2022-02-26 15:59:02 +01:00
parent e897b011ac
commit bba163aa51
3 changed files with 7 additions and 8 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "azerothcore-armory", "name": "azerothcore-armory",
"version": "0.6.1", "version": "0.6.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "azerothcore-armory", "name": "azerothcore-armory",
"version": "0.6.1", "version": "0.6.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@supercharge/promise-pool": "^2.1.0", "@supercharge/promise-pool": "^2.1.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "azerothcore-armory", "name": "azerothcore-armory",
"version": "0.6.1", "version": "0.6.2",
"description": "", "description": "",
"scripts": { "scripts": {
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",

View file

@ -11,8 +11,8 @@
<img id="total-points-icon" src="/img/UI-Achievement-TinyShield.png"> <img id="total-points-icon" src="/img/UI-Achievement-TinyShield.png">
</div> </div>
</div> </div>
<br> <br class="is-hidden-touch">
<br> <br class="is-hidden-touch">
<div class="columns is-multiline"> <div class="columns is-multiline">
<div class="column is-one-fifth-desktop is-full-tablet"> <div class="column is-one-fifth-desktop is-full-tablet">
@ -70,7 +70,7 @@
.attr("href", "#") .attr("href", "#")
.text(cat.nameLang0) .text(cat.nameLang0)
.on("click", () => { .on("click", () => {
if ($openCategory !== undefined && !$openCategory.data("children")[0].contains($a[0])) { if ($openCategory !== undefined && $openCategory !== $a && !$openCategory.data("children")[0].contains($a[0])) {
closeCategory(); closeCategory();
} }
@ -81,9 +81,8 @@
// Open the clicked category // Open the clicked category
$children.slideDown(); $children.slideDown();
} }
} else {
openCategory(cat);
} }
openCategory(cat);
return false; return false;
}); });
return $a; return $a;