summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-09-23 19:48:48 +0200
committersijanec <sijanecantonluka@gmail.com>2020-09-23 19:48:48 +0200
commit47c8dd3a9874dcaf505abcea61cd550a2e87c816 (patch)
treee6a69c62eb956823522f2a6590e4f1b9c5fb7551 /assets
parentskril today button in popravil barvo today dneva na \!important način (diff)
downloadbeziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar.gz
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar.bz2
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar.lz
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar.xz
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.tar.zst
beziapp-47c8dd3a9874dcaf505abcea61cd550a2e87c816.zip
Diffstat (limited to 'assets')
-rw-r--r--assets/js/meals.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/js/meals.js b/assets/js/meals.js
index d614153..49d787d 100644
--- a/assets/js/meals.js
+++ b/assets/js/meals.js
@@ -324,7 +324,7 @@ var mealClickHandler = (eventClickInfo) => {
document.getElementById("meal-options").innerHTML = "";
for(const [option_index, option_object] of Object.entries(meal_object.menu_options)) {
let menu_option_li_el = document.createElement("li");
- let menu_option_a_el = document.createElement("a");
+ let menu_option_a_el = document.createElement("button");
menu_option_a_el.innerText = option_object.text;
// console.log(JSON.stringify(meal_object)); // debug
if (option_object.selected != null) {
@@ -334,7 +334,8 @@ var mealClickHandler = (eventClickInfo) => {
menu_option_a_el.className = "selected-meal";
}
}
- menu_option_a_el.style = "waves-effect";
+ 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.id = "menu_index_"+option_index;
if(!(meal_object.readonly)) {
menu_option_a_el.onclick = () => {