summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-30 15:24:43 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2016-10-30 15:24:43 -0400
commit8718bb7ff233e224f35ca46773165dc1ee0d8b03 (patch)
tree403c5235acaac292bdcd25e87098dcdfd21f997a
parent9f374e1385192aa94b4587f2379816706302bfbf (diff)
Disable MDL for next-action checkboxes
d1d071462a0a1520d94a029886093b558b24267d causes uGTD to dynamically regenerate the next action list when you create a new action. Unfortunately, to get the new checkboxes to look right, it has to MDL.upgrade them, and this clobbers the onclick handler that Ur/Web installs. Disable MDL on the checkboxes to preserve functionality (at the cost of a bit of ugliness).
-rw-r--r--main.ur3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.ur b/main.ur
index c905dae..195389d 100644
--- a/main.ur
+++ b/main.ur
@@ -36,7 +36,7 @@ fun renderNextAction action =
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<span class="mdl-list__item-icon">
- <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for={c}>
+ <label class="mdl-checkbox" for={c}>
<ccheckbox id={c} source={done} class="mdl-checkbox__input"
onchange={
b <- get done;
@@ -107,7 +107,6 @@ val main =
name <- get newNextActionDescription.Source;
bind (rpc (newNextAction name)) (set actionItems);
sleep 0;
- Mdl.upgradeAllRegistered;
set mode NextActions;
set newNextActionDescription.Source ""
} />