Permalink
Browse files

Autocomplete binds onto pbcore-conditional-autocomplete as well

  • Loading branch information...
1 parent 2f476ba commit 6492f0a79586b4c19ae686984d8eeefa8f621dda @aviflombaum aviflombaum committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/common/application.js
@@ -149,7 +149,7 @@ function autocomplete_source_for_format_type(type) {
// Autocomplete for Edit Form
$(function() {
- $(".pbcore-autocomplete").live("keydown.autocomplete", function() {
+ $(".pbcore-autocomplete, .pbcore-conditional-autocomplete").live("keydown.autocomplete", function() {
if (!$(this).hasClass('ui-autocomplete-input')) {
create_autocomplete($(this));
}

0 comments on commit 6492f0a

Please sign in to comment.