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 8450faa  tweak timing of the updates
8450faa is described below

commit 8450faa0f745d5d05d3f0dc9d2011fc62dc04283
Author: Sam Ruby <[email protected]>
AuthorDate: Fri Oct 6 00:34:18 2017 -0400

    tweak timing of the updates
---
 www/board/agenda/views/buttons/post.js.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/buttons/post.js.rb 
b/www/board/agenda/views/buttons/post.js.rb
index b09ba87..1f5be63 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -64,14 +64,18 @@ class Post < Vue
 
   # autofocus on report/resolution title/text
   def mounted()
+    jQuery('#post-report-form').on 'show.bs.modal' do
+      # update contents when modal is about to be shown
+      self.retitle()
+    end
+
     jQuery('#post-report-form').on 'shown.bs.modal' do
+      # set focus once modal is shown
       if @@button.text == 'add resolution'
         document.getElementById("post-report-title").focus()
       else
         document.getElementById("post-report-text").focus()
       end
-
-      self.retitle()
     end
   end
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to