diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-09-23 20:01:42 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-09-23 20:01:42 +0200 |
commit | 9887173427b46fc860438440c7f0139e1f68419f (patch) | |
tree | 3ce4442c3381443135a312f75f66d234ac958bd8 /assets/js | |
parent | ugly hack (diff) | |
download | beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar.gz beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar.bz2 beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar.lz beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar.xz beziapp-9887173427b46fc860438440c7f0139e1f68419f.tar.zst beziapp-9887173427b46fc860438440c7f0139e1f68419f.zip |
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/meals.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/js/meals.js b/assets/js/meals.js index 49d787d..15accdb 100644 --- a/assets/js/meals.js +++ b/assets/js/meals.js @@ -327,15 +327,16 @@ var mealClickHandler = (eventClickInfo) => { let menu_option_a_el = document.createElement("button"); menu_option_a_el.innerText = option_object.text; // console.log(JSON.stringify(meal_object)); // debug + let classlist = ""; if (option_object.selected != null) { if(option_object.selected) { // console.log("selected"); // debug // - menu_option_a_el.className = "selected-meal"; + classlist = "color: green; font-weight: bold"; } } menu_option_a_el.classList = "waves-effect waves-light btn-large"; - menu_option_a_el.style = "color: var(--color-text); background-color: rgba(0,0,0,0); line-height: 1.2; height:auto !important;"; + menu_option_a_el.style = "color: var(--color-text); background-color: rgba(0,0,0,0); line-height: 1.2; height:auto; "+classlist+" !important"; menu_option_a_el.id = "menu_index_"+option_index; if(!(meal_object.readonly)) { menu_option_a_el.onclick = () => { |