Revision 9bc1f99c
Added by Tomer Brisker over 8 years ago
app/helpers/layout_helper.rb | ||
---|---|---|
end
|
||
|
||
def popover(title, msg, options = {})
|
||
content_tag(:a, icon_text("info-sign", title), { :rel => "popover", :data => {"content" => msg, "original-title" => title} }.merge(options))
|
||
content_tag(:a, icon_text("info-sign", title), { :rel => "popover",
|
||
:data => { :content => msg,
|
||
:"original-title" => title,
|
||
:trigger => "focus",
|
||
:container => 'body',
|
||
:html => true },
|
||
:role => 'button',
|
||
:tabindex => '-1' }.merge(options))
|
||
end
|
||
|
||
def will_paginate(collection = nil, options = {})
|
Also available in: Unified diff
Fixes #11388 - Popovers display with correct size and dismiss on next click