Comments (3)
I think I found the problem: we keep adding on class definitions on every round:
class ="btn-activity col care_self other_category"
I think we need to reset to
class ="btn-activity col"
before adding the category class...
from meterapp.
That's what lines 188-192 do though (or should do):
CATEGORIES.forEach(function (cat) {
app.actionButtons.each(function (button) {
$(button).removeClass(cat);
});
});
Maybe other_category
is always added anyway?
Careful if you reset it to class ="btn-activity col"
because then if
we change the HTML we need to remember to change the JS too..
from meterapp.
And they do.
I changed l.228 in index.js
button.addClass(activity.category || "other_category");
to
button.addClass(activity.category);
and now all seems fine - must admit that I am not sure what the || bit was for - so I hope I haven't broken something else..
from meterapp.
Related Issues (20)
- indicate if subcategories follow with ">"
- time format "yyyy-MM-dd hh:mm:ss" HOT 1
- Allow images for buttons
- read MetaID HOT 1
- First round through survey doesn't log time
- navigateTo home > assumes activity (even when from Survey) HOT 1
- Cordova screwed up after pulling code from @gozzilli HOT 1
- Create list of past activities (a.k.a. quick repeat activity) HOT 1
- Rainforest Automation Connection HOT 3
- "Read our data policy" has no route back to the app HOT 1
- Post code linking HOT 1
- ActPixel menu button - no need to authorise
- Authorisation button > authorisation pending
- Update menu when returning from #GotDate
- Hide app.header when showing profile
- *h to disable Menu:Activity and Menu:Profile and Menu:Date (onclick)
- Handle profile with no data
- Android 9+ ClearText network error HOT 5
- Present content in iFrames
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meterapp.