Skip to content
Browse files

Fix text box selection in Safari

  • Loading branch information...
1 parent 7914d6a commit 48aac9d696c603c08e8cf2a1ec39d80cd83d6f62 @adamlogic adamlogic committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/javascripts/application.js
View
3 public/javascripts/application.js
@@ -4,7 +4,8 @@ $(function() {
$('#drawing li').solari('000000');
$('#add_entries_link').click(function() {
- $('#entries_form').toggle().find(':text').trigger('select');
+ $('#entries_form').toggle();
+ setTimeout(function() { $('#entries_form :text').trigger('select') }, 0);
return false;
});

0 comments on commit 48aac9d

Please sign in to comment.
Something went wrong with that request. Please try again.