This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 1fd5b05 initialize checkboxes correctly
1fd5b05 is described below
commit 1fd5b05386a81278dd0280cc7729ce0128d82e9e
Author: Sam Ruby <[email protected]>
AuthorDate: Sat Sep 30 18:13:00 2017 -0400
initialize checkboxes correctly
---
www/board/agenda/views/pages/missing.js.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/views/pages/missing.js.rb
b/www/board/agenda/views/pages/missing.js.rb
index d5b1a3f..1d04af2 100644
--- a/www/board/agenda/views/pages/missing.js.rb
+++ b/www/board/agenda/views/pages/missing.js.rb
@@ -8,7 +8,7 @@ class Missing < Vue
end
# update check marks based on current Index
- def mounted()
+ def beforeMount()
Agenda.index.each do |item|
@checked[item.title] = true unless defined? @checked[item.title]
end
@@ -22,7 +22,8 @@ class Missing < Vue
_h3 class: item.color do
if item.attach =~ /^[A-Z]+/
_input type: 'checkbox', name: 'selected', value: item.title,
- checked: @checked[item.title], onChange:-> {
+ checked: true, disabled: true, domPropsDisabled: false,
+ domPropsChecked: @checked[item.title], onClick:-> {
@checked[item.title] = !@checked[item.title]
Vue.forceUpdate()
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].