1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-04 20:43:33 +02:00

minor refactoring of vimperator.beep

This commit is contained in:
Doug Kearns
2007-10-16 03:58:01 +00:00
parent 70a4dff190
commit 4a7059d524

View File

@@ -198,12 +198,8 @@ const vimperator = (function() //{{{
beep: function() beep: function()
{ {
if (!vimperator.options["visualbell"]) if (vimperator.options["visualbell"])
{ {
sound_service.beep();
return;
}
// flash the visual bell // flash the visual bell
var popup = document.getElementById("vimperator-visualbell"); var popup = document.getElementById("vimperator-visualbell");
var win = getBrowser().mPanelContainer; var win = getBrowser().mPanelContainer;
@@ -211,13 +207,13 @@ const vimperator = (function() //{{{
popup.height = box.height; popup.height = box.height;
popup.width = box.width; popup.width = box.width;
//popup.style.backgroundColor = "black";
////popup.showPopup(win, box.screenX, box.screenY, "popup");
//popup.showPopup(win, -1, -1, "popup", "topleft", "topleft");
popup.openPopup(win, "overlap", 0, 0, false, false) popup.openPopup(win, "overlap", 0, 0, false, false)
setTimeout(function() { popup.hidePopup(); }, 50); setTimeout(function() { popup.hidePopup(); }, 50);
}
else
{
sound_service.beep();
}
}, },
copyToClipboard: function(str) copyToClipboard: function(str)