Commit b299ed35 authored by Stephen Sawchuk's avatar Stephen Sawchuk

fix jquery .focus() spec deviation.

parent 24c22e24
...@@ -150,7 +150,10 @@ jQuery(function ($) { ...@@ -150,7 +150,10 @@ jQuery(function ($) {
App.render(); App.render();
}, },
edit: function () { edit: function () {
$(this).closest('li').addClass('editing').find('.edit').focus(); var $input = $(this).closest('li').addClass('editing').find('.edit');
var val = $input.val();
$input.val(val).focus();
}, },
blurOnEnter: function (e) { blurOnEnter: function (e) {
if (e.which === App.ENTER_KEY) { if (e.which === App.ENTER_KEY) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment