Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge branch 'V2_5' of github.com:afimb/chouette2 into V2_5
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Etienne committed Dec 4, 2014
2 parents 19c8ff4 + f96d76e commit 5bb1db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/inputs/search_stop_area_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def search
};
$('##{dom_id}').tokenInput('#{options[:json]}', {
zindex: 1061,
disabled: #{options[:disabled] || false},
crossDomain: false,
tokenLimit: #{tokenLimit},
Expand Down
7 changes: 4 additions & 3 deletions app/inputs/search_time_table_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ def search
tags = '<div class=\"info\">' + item.tags + '</div>' ;
}
return '<li><div class=\"comment\">' + item.comment +
'</div><div class=\"info\">' + item.time_table_bounding + day_types + '</div>' +
'</div><div class=\"info\">' + item.time_table_bounding + ' ' + day_types + '</div>' +
tags + '</li>';
};
$('##{dom_id}').tokenInput('#{options[:json]}', {
zindex: 1061,
crossDomain: false,
tokenLimit: #{tokenLimit},
minChars: 2,
Expand All @@ -29,7 +30,7 @@ def search
noResultsText: '#{options[:no_result_text]}',
searchingText: '#{options[:searching_text]}',
resultsFormatter: time_table_formatter,
tokenFormatter: time_table_formatter,
tokenFormatter: time_table_formatter,
});
});").html_safe)
end
Expand All @@ -48,7 +49,7 @@ def input_html_options
:required => nil,
:autofocus => nil,
:class => 'token-input',
'data-model-name' => object.class.model_name.human
'data-model-name' => object.class.model_name.human
})
end

Expand Down

0 comments on commit 5bb1db4

Please sign in to comment.