merb-ui 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/app/helpers/global_helpers.rb +2 -1
- metadata +1 -1
data/Rakefile
CHANGED
|
@@ -263,7 +263,7 @@ module Merb::GlobalHelpers
|
|
|
263
263
|
attributes[:name] = :q
|
|
264
264
|
attributes[:style] = "width:#{options[:width]};" if options[:width]
|
|
265
265
|
attributes[:type] = :text
|
|
266
|
-
attributes[:value] =
|
|
266
|
+
attributes[:value] = @query if @query
|
|
267
267
|
inputs = self_closing_tag(:input, attributes) + mui_button(:submit => true, :title => 'Search')
|
|
268
268
|
form = tag(:form, inputs, :action => options[:action])
|
|
269
269
|
mui_block(:inline => true){form}
|
|
@@ -346,6 +346,7 @@ module Merb::GlobalHelpers
|
|
|
346
346
|
if options[:title_url]
|
|
347
347
|
title_attributes[:class] << ' mui_link'
|
|
348
348
|
title_attributes[:href] = options[:title_url]
|
|
349
|
+
title_attributes[:title] = options[:title].gsub(/<\/?[^>]*>/, '')
|
|
349
350
|
title_type = :a
|
|
350
351
|
else
|
|
351
352
|
title_type = :div
|