1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 23:05:46 +01:00

Added liberator.commandline.input() to prompt the user. Added prompt when opening too many tabs.

This commit is contained in:
Kris Maglione
2008-09-10 04:28:11 +00:00
parent 161278a172
commit 4b6c27b1e7
8 changed files with 98 additions and 63 deletions

View File

@@ -429,16 +429,7 @@ liberator.Bookmarks = function () //{{{
}
if (openItems)
{
// FIXME: use yes/no question
if (items.length > 50)
return liberator.echoerr("For now, you can only open a hard limit of 50 items at once");
for (var i = 0; i < items.length; i++)
liberator.open(items[i][0], liberator.NEW_TAB);
return;
}
return liberator.openTabs((i[0] for (i in items)), items.length);
var title, url, tags, keyword, extra;
var list = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>" +
@@ -739,14 +730,7 @@ liberator.History = function () //{{{
if (openItems)
{
// FIXME: use yes/no question
if (items.length > 50)
return liberator.echoerr("For now, you can only open a hard limit of 50 items at once");
for (var i = 0; i < items.length; i++)
liberator.open(items[i][0], liberator.NEW_TAB);
return;
return liberator.openTabs((i[0] for (i in items)), items.length);
}
else
{