Implemented issue#536 - Tooltip in forms is not shown / only on hover / not no click.
This commit is contained in:
parent
fa8bf6e65f
commit
d6ee7025ab
4 changed files with 22 additions and 15 deletions
|
@ -117,8 +117,11 @@ class App.ControllerForm extends App.Controller
|
|||
evs = eventSelector.split(' ')
|
||||
fieldset.find( evs[1] ).bind( evs[0], (e) -> callback(e) )
|
||||
|
||||
# bind tool tips
|
||||
fieldset.find('.js-helpMessage').tooltip()
|
||||
|
||||
# return form
|
||||
return fieldset
|
||||
fieldset
|
||||
|
||||
###
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ class Index extends App.ControllerSubContent
|
|||
new App.ControllerGenericNew(
|
||||
pageData:
|
||||
title: 'SLAs'
|
||||
object: 'Sla'
|
||||
object: 'SLA'
|
||||
objects: 'SLAs'
|
||||
genericObject: 'Sla'
|
||||
container: @el.closest('.content')
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% if @attribute.note: %>
|
||||
<div class="help-message" title="<%- @Ti( @attribute.note ) + ' ' %>">
|
||||
<div class="help-message js-helpMessage" title="<%- @Ti(@attribute.note) %>">
|
||||
<%- @Icon('help') %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
@ -17,6 +17,6 @@
|
|||
<% if @attribute.remove: %><span><a href="#" class="glyphicon glyphicon-minus"></a></span><% end %>
|
||||
<% if @attribute.add: %><span><a href="#" class="glyphicon glyphicon-plus"></a></span><% end %>
|
||||
<span class="help-inline"></span>
|
||||
<span class="help-block"><% if @attribute.help: %><%- @T( @attribute.help ) + ' ' %><% end %><%- @attribute.helpLink %></span>
|
||||
<span class="help-block"><% if @attribute.help: %><%- @T(@attribute.help) %><% end %><%- @attribute.helpLink %></span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3684,6 +3684,10 @@ footer {
|
|||
font-family: inherit;
|
||||
}
|
||||
|
||||
.tooltip-inner {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.popover {
|
||||
font-family: inherit;
|
||||
width: 372px;
|
||||
|
|
Loading…
Reference in a new issue