diff options
| author | vlatka pavisic | 2016-11-09 15:04:07 +0100 | 
|---|---|---|
| committer | vlatka pavisic | 2016-11-09 15:04:07 +0100 | 
| commit | 56c0f55d2d8d566b931664b85c76dbe3a58e31cc (patch) | |
| tree | 717b761de93b13a72f6fde9fa05b5b7cf57131ec /app/inputs | |
| parent | d67ed4c32b338070e4e4ff33f89fe64011e14c3b (diff) | |
| download | chouette-core-56c0f55d2d8d566b931664b85c76dbe3a58e31cc.tar.bz2 | |
Refs #1872 : Route direction and wayback enumerations
Diffstat (limited to 'app/inputs')
| -rw-r--r-- | app/inputs/search_stop_area_input.rb | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/app/inputs/search_stop_area_input.rb b/app/inputs/search_stop_area_input.rb index e5cfafc34..c7e21e921 100644 --- a/app/inputs/search_stop_area_input.rb +++ b/app/inputs/search_stop_area_input.rb @@ -1,5 +1,5 @@  class SearchStopAreaInput < Formtastic::Inputs::SearchInput -   +    def search      if options[:json]        tokenLimit = options[:tokenLimit].present? ? options[:tokenLimit] : "null" @@ -16,19 +16,19 @@ class SearchStopAreaInput < Formtastic::Inputs::SearchInput             var item_localization = function( item){                var localization = item.zip_code + ' ' + item.short_city_name; -              return localization;          +              return localization;             }; -           var item_format = function( item ){                        -              var name = item_name( item );   +           var item_format = function( item ){ +              var name = item_name( item );                var localization = item_localization( item ); -               +                html_result = '<li>';                html_result += '<span><image src=\"' + item.stop_area_path + '\" height=\"25px\" width=\"25px\"></span>'                if(name != '')                { -                html_result += '<span style=\"height:25px; line-height:25px; margin-left: 5px; \">' + name + '</span>' ;     -              }               +                html_result += '<span style=\"height:25px; line-height:25px; margin-left: 5px; \">' + name + '</span>' ; +              }                if(localization != '')                {                  html_result += '<small style=\"height:25px; line-height:25px; margin-left: 10px; color: #555; \">' + localization + '</small>'; @@ -48,7 +48,7 @@ class SearchStopAreaInput < Formtastic::Inputs::SearchInput               noResultsText: '#{options[:no_result_text]}',               searchingText: '#{options[:searching_text]}',               resultsFormatter: item_format, -             tokenFormatter: item_format,              +             tokenFormatter: item_format,             });          });").html_safe)      end @@ -62,7 +62,7 @@ class SearchStopAreaInput < Formtastic::Inputs::SearchInput      end    end -  def input_html_options     +  def input_html_options      css_class =  super[:class]      super.merge({                    :required          => nil, | 
