merb-ui 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- 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
|