Permalink
Browse files

clicking "add new question" should focus on input field

  • Loading branch information...
1 parent 1633a75 commit 83569ac6d3e2f72c1c430f3aabd69b221233ee2f @joshnuss committed Oct 21, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/views/admin/question_categories/edit.html.erb
@@ -13,8 +13,9 @@
$(this).parent('.question').remove();
});
$.scrollTo(jQuery('#questions .question:last'), 800);
+ $('.question:last input:first').focus();
});
- $('#tasks .remove').click(function() {
+ $('#questions .remove').click(function() {
$(this).parent('.question').children(':hidden[id$=delete]').val(1);
$(this).parent('.question').slideUp('slow');
});

0 comments on commit 83569ac

Please sign in to comment.