whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [35/50] Commit 3d0f75d: default initials
Date Fri, 22 Jan 2016 02:40:57 GMT
Commit 3d0f75dad48780ca32e04e1df38576693ce94f9e:
    default initials


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
views/add-comment.rb                                         | + -
views/main.js.rb                                             | + -
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------


diff --git a/views/add-comment.rb b/views/add-comment.rb
index 355470d..d397668 100644
--- a/views/add-comment.rb
+++ b/views/add-comment.rb
@@ -21,7 +21,7 @@ def render
       _div.form_group do
         _label 'Initials', for: 'comment-initials'
         _input.comment_initials!.form_control label: 'Initials',
-          placeholder: 'initials'
+          placeholder: 'initials', defaultValue: Server.initials
       end
 
       #input field: comment text
diff --git a/views/main.js.rb b/views/main.js.rb
index fc74a3c..872f39b 100644
--- a/views/main.js.rb
+++ b/views/main.js.rb
@@ -121,7 +121,7 @@ def componentDidMount()
 
     # keyboard navigation (unless on the search screen)
     def (document.body).onkeyup(event)
-      return if ~'#search-text'
+      return if ~'#search-text' or ~'.modal-open'
 
       if event.keyCode == 37
         self.navigate ~"a[rel=prev]".getAttribute('href')

Mime
View raw message