Browse Source

this fixes sticky popup on FF

pull/2/head
gorhill 10 years ago
parent
commit
cd13d2870b
  1. 11
      src/js/popup.js

11
src/js/popup.js

@ -1128,15 +1128,7 @@ function gotoExtensionURL() {
if ( url ) { if ( url ) {
messager.send({ what: 'gotoExtensionURL', url: url }); messager.send({ what: 'gotoExtensionURL', url: url });
} }
}
/******************************************************************************/
function gotoExternalURL() {
var url = this.getAttribute('data-external-url');
if ( url ) {
messager.send({ what: 'gotoURL', url: url });
}
vAPI.closePopup();
} }
/******************************************************************************/ /******************************************************************************/
@ -1220,7 +1212,6 @@ uDom.onLoad(function() {
uDom('#buttonRevertAll').on('click', revertAll); uDom('#buttonRevertAll').on('click', revertAll);
uDom('#buttonReload').on('click', buttonReloadHandler); uDom('#buttonReload').on('click', buttonReloadHandler);
uDom('.extensionURL').on('click', gotoExtensionURL); uDom('.extensionURL').on('click', gotoExtensionURL);
uDom('.externalURL').on('click', gotoExternalURL);
uDom('body').on('click', '.dropdown-menu-button', dropDownMenuShow); uDom('body').on('click', '.dropdown-menu-button', dropDownMenuShow);
uDom('body').on('click', '.dropdown-menu-capture', dropDownMenuHide); uDom('body').on('click', '.dropdown-menu-capture', dropDownMenuHide);

Loading…
Cancel
Save