document popover enhance.js
This commit is contained in:
parent
aebb5ad4b4
commit
749a5c073b
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
||||||
/* from here http://jsfiddle.net/WojtekKruszewski/Zf3m7/22/ */
|
/*
|
||||||
|
|
||||||
|
Makes the popover stay when hovered over it
|
||||||
|
|
||||||
|
from here http://jsfiddle.net/WojtekKruszewski/Zf3m7/22/
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
var originalLeave = $.fn.popover.Constructor.prototype.leave;
|
var originalLeave = $.fn.popover.Constructor.prototype.leave;
|
||||||
|
|
||||||
$.fn.popover.Constructor.prototype.leave = function(obj){
|
$.fn.popover.Constructor.prototype.leave = function(obj){
|
||||||
var self = obj instanceof this.constructor ?
|
var self = obj instanceof this.constructor ?
|
||||||
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
|
obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
|
||||||
|
|
Loading…
Reference in a new issue