You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/10/13 23:05:36 UTC
[whimsy] branch master updated (c19a419 -> 030bbb2)
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git.
from c19a419 update title in one place
new 506a9df fix regression -- no 'document' on the server
new 030bbb2 reconstruct displayName from component name
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
www/board/agenda/views/layout/main.js.rb | 4 +++-
www/board/agenda/views/router.js.rb | 7 ++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].
[whimsy] 02/02: reconstruct displayName from component name
Posted by ru...@apache.org.
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
commit 030bbb229dc0e3df9171c88dc7caa5ca9728f455
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 13 19:05:16 2017 -0400
reconstruct displayName from component name
---
www/board/agenda/views/router.js.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/views/router.js.rb b/www/board/agenda/views/router.js.rb
index d884929..3dcf3de 100644
--- a/www/board/agenda/views/router.js.rb
+++ b/www/board/agenda/views/router.js.rb
@@ -109,7 +109,12 @@ class Router
# provide defaults for required properties
item.color ||= 'blank'
- item.title ||= item.view.displayName
+
+ if not item.title
+ item.title = item.view.options.name.
+ gsub(/(^|-)\w/) {|c| return c.upcase()}.
+ gsub('-', ' ').strip()
+ end
# determine what buttons are required, merging defaults, form provided
# overrides, and any overrides provided by the agenda item itself
--
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.
[whimsy] 01/02: fix regression -- no 'document' on the server
Posted by ru...@apache.org.
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
commit 506a9df163f212551b91bc6d3c6935a1f8ae2b4d
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Oct 13 19:04:42 2017 -0400
fix regression -- no 'document' on the server
---
www/board/agenda/views/layout/main.js.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/views/layout/main.js.rb b/www/board/agenda/views/layout/main.js.rb
index 0f85cba..dfc5160 100644
--- a/www/board/agenda/views/layout/main.js.rb
+++ b/www/board/agenda/views/layout/main.js.rb
@@ -64,7 +64,9 @@ class Main < Vue
Main.item = route.item
# update title to match the item title whenever page changes
- document.getElementsByTagName('title')[0].textContent = route.item.title
+ if defined? document
+ document.getElementsByTagName('title')[0].textContent = route.item.title
+ end
end
# navigation method that updates history (back button) information
--
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.