Display help messages on 'hover' event.

fixes #492
This commit is contained in:
Antoine Nguyen
2013-11-04 10:35:43 +01:00
parent 91ce9c5f5c
commit 77e5d754fb
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -45,7 +45,8 @@ function modalbox(e, css, defhref, defcb, defclosecb) {
$div.modal({show: false});
$div.one('shown', function() {
$(".help").popover({
container: "#modalbox"
container: "#modalbox",
trigger: "hover"
}).click(function(e) {e.preventDefault();});
if (modalcb != undefined) {
if (typeof modalcb === "function") modalcb(); else eval(modalcb + '()');
@@ -253,5 +254,5 @@ $(document).ready(function() {
$(document).on('click', 'a[data-toggle="ajaxmodal"]', modalbox);
$(document).on('click', 'a[data-toggle="ajaxmodal-autowidth"]', modalbox_autowidth);
$(document).on('click', '.activator', activate_widget);
$(".help").popover().click(function(e) {e.preventDefault();});
$(".help").popover({trigger: 'hover'}).click(function(e) {e.preventDefault();});
});
+1 -1
View File
@@ -75,7 +75,7 @@ TwocolsNav.prototype = {
$('#' + this.options.divid + ' input[type=radio]').click($.proxy(this.radio_clicked, this));
$(".help").popover({
placement: 'bottom',
trigger: 'click'
trigger: 'hover'
}).click(function(e) {e.preventDefault();});
$('#' + this.options.divid + ' select').change();
$('#' + this.options.divid + ' input[type=radio]:checked').click();