javascript - Bootstrap .popover('show'), .popover('hide') not working. Binding it to click works -


i have button has been binded popover. hide popover when clicks on 1 of smilies in popover. however, $("#smiley").popover('hide') not work.

unfortunately haven't been able reproduce barebones code - happens on live site, https://coinchat.org

relevant code:

$("#smiley").popover({html: true, trigger: 'click', placement: 'top', content: smileycontent, title: 'smilies'}); 

later in function..

$("#smiley").popover('hide'); // not working 

in https://inputs.io/js/buttons.js jquery plugin jquery.fn.popover overwritten on load event of kind, $("#smiley").popover("hide") @ point no longer calling bootstrap plugin provided inputs.io.

a snippet of code:

inputsio.load = function(){     (function(){(function(e){return e.fn.popover=function(t) 

the usage of jquery plugin namespace application specific code extremely distasteful indeed.

a temporary fix $("#smiley").click()


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -