diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2016-10-30 15:24:43 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2016-10-30 15:24:43 -0400 |
commit | 8718bb7ff233e224f35ca46773165dc1ee0d8b03 (patch) | |
tree | 403c5235acaac292bdcd25e87098dcdfd21f997a | |
parent | 9f374e1385192aa94b4587f2379816706302bfbf (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.ur | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 "" } /> |