diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b91eb6a7..f4527937d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Gear unexpected behavior of Play toolbar icon #1600 - Add a zoom-in and zoom-out button in ColorMyWorld activity #1593 - Adding Drag to fill Cells Functionality in Game of Life #1150 +- Undismissable palletes in Dollar street #1605 ## [1.8.0] - 2024-04-10 ### Added diff --git a/activities/DollarStreet.activity/js/palettes/incomes.js b/activities/DollarStreet.activity/js/palettes/incomes.js index 5371189aa..1b40d0234 100644 --- a/activities/DollarStreet.activity/js/palettes/incomes.js +++ b/activities/DollarStreet.activity/js/palettes/incomes.js @@ -34,6 +34,10 @@ define(['sugar-web/graphics/palette',"text!activity/palettes/incomes.html"], fun that.getPalette().dispatchEvent(that.incomeEvent); }); + document.querySelector('#content').addEventListener('click', function(event){ + that.popDown(); + }); + let wrapper = this.getPalette().childNodes[1]; wrapper.style.width = "450px"; wrapper.style.maxWidth = "400px"; diff --git a/activities/DollarStreet.activity/js/palettes/regions.js b/activities/DollarStreet.activity/js/palettes/regions.js index 5604119f9..1e4c70c55 100644 --- a/activities/DollarStreet.activity/js/palettes/regions.js +++ b/activities/DollarStreet.activity/js/palettes/regions.js @@ -61,6 +61,10 @@ define(["sugar-web/graphics/palette"], function(palette) { that.getPalette().firstChild.style.backgroundColor = "transparent"; that.getPalette().firstChild.style.backgroundImage = ""; + document.querySelector('#content').addEventListener('click', function(event){ + that.popDown(); + }); + function popDownOnButtonClick(event) { console.log(event); that.popDown(); diff --git a/activities/DollarStreet.activity/js/palettes/things.js b/activities/DollarStreet.activity/js/palettes/things.js index af3692f74..fffee619b 100644 --- a/activities/DollarStreet.activity/js/palettes/things.js +++ b/activities/DollarStreet.activity/js/palettes/things.js @@ -55,6 +55,10 @@ define(["sugar-web/graphics/palette"], function(palette) { that.getPalette().firstChild.style.backgroundColor = "transparent"; that.getPalette().firstChild.style.backgroundImage = ""; + document.querySelector('#content').addEventListener('click', function(event){ + that.popDown(); + }); + function popDownOnButtonClick(event) { console.log(event); that.popDown();