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 2018/05/27 13:30:45 UTC
[whimsy] branch master updated: treat agenda as approved in test
environment (and in backwards browsers)
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 7758f99 treat agenda as approved in test environment (and in backwards browsers)
7758f99 is described below
commit 7758f997a4cb428e599dea0458299752a49001ce
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun May 27 09:30:00 2018 -0400
treat agenda as approved in test environment (and in backwards browsers)
---
www/board/agenda/views/models/agenda.js.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/views/models/agenda.js.rb b/www/board/agenda/views/models/agenda.js.rb
index 52131d3..98e18f8 100644
--- a/www/board/agenda/views/models/agenda.js.rb
+++ b/www/board/agenda/views/models/agenda.js.rb
@@ -250,7 +250,9 @@ class Agenda
# determine if this agenda was approved in a later meeting
def self.approved
- if @@approved == '?' and defined? fetch
+ @@approved = 'approved' unless defined? fetch
+
+ if @@approved == '?'
options = {month: 'long', day: 'numeric', year: 'numeric'}
date = Date.new(Agenda.file[/\d\d\d\d_\d\d_\d\d/].
gsub('_', '-') + 'T18:30:00.000Z').toLocaleString('en-US', options)
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.