Implemented issue#536 - Tooltip in forms is not shown / only on hover / not no click.

This commit is contained in:
Martin Edenhofer 2016-12-13 14:55:10 +01:00
parent fa8bf6e65f
commit d6ee7025ab
4 changed files with 22 additions and 15 deletions

View file

@ -117,8 +117,11 @@ class App.ControllerForm extends App.Controller
evs = eventSelector.split(' ') evs = eventSelector.split(' ')
fieldset.find( evs[1] ).bind( evs[0], (e) -> callback(e) ) fieldset.find( evs[1] ).bind( evs[0], (e) -> callback(e) )
# bind tool tips
fieldset.find('.js-helpMessage').tooltip()
# return form # return form
return fieldset fieldset
### ###

View file

@ -60,7 +60,7 @@ class Index extends App.ControllerSubContent
new App.ControllerGenericNew( new App.ControllerGenericNew(
pageData: pageData:
title: 'SLAs' title: 'SLAs'
object: 'Sla' object: 'SLA'
objects: 'SLAs' objects: 'SLAs'
genericObject: 'Sla' genericObject: 'Sla'
container: @el.closest('.content') container: @el.closest('.content')

View file

@ -8,7 +8,7 @@
</div> </div>
<% end %> <% end %>
<% if @attribute.note: %> <% if @attribute.note: %>
<div class="help-message" title="<%- @Ti( @attribute.note ) + ' ' %>"> <div class="help-message js-helpMessage" title="<%- @Ti(@attribute.note) %>">
<%- @Icon('help') %> <%- @Icon('help') %>
</div> </div>
<% end %> <% end %>
@ -17,6 +17,6 @@
<% if @attribute.remove: %><span><a href="#" class="glyphicon glyphicon-minus"></a></span><% end %> <% 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 %> <% if @attribute.add: %><span><a href="#" class="glyphicon glyphicon-plus"></a></span><% end %>
<span class="help-inline"></span> <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>
</div> </div>

View file

@ -3684,6 +3684,10 @@ footer {
font-family: inherit; font-family: inherit;
} }
.tooltip-inner {
max-width: 400px;
}
.popover { .popover {
font-family: inherit; font-family: inherit;
width: 372px; width: 372px;