mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 21:35:46 +01:00
fixed :history
This commit is contained in:
@@ -505,12 +505,9 @@ liberator.History = function () //{{{
|
|||||||
for (var i = 0; i < rootNode.childCount; i++)
|
for (var i = 0; i < rootNode.childCount; i++)
|
||||||
{
|
{
|
||||||
var node = rootNode.getChild(i);
|
var node = rootNode.getChild(i);
|
||||||
|
dump("History child " + node.itemId + ": " + node.title + " - " + node.type + "\n");
|
||||||
if (node.type == node.RESULT_TYPE_URI) // just make sure it's a bookmark
|
if (node.type == node.RESULT_TYPE_URI) // just make sure it's a bookmark
|
||||||
{
|
history.push([node.uri, node.title || "[No title]"]);
|
||||||
history.push([node.uri, node.title]);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
dump("History child " + node.itemId + ": " + node.title + " - " + node.type + "\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// close a container after using it!
|
// close a container after using it!
|
||||||
@@ -655,7 +652,7 @@ liberator.History = function () //{{{
|
|||||||
if (!history)
|
if (!history)
|
||||||
load();
|
load();
|
||||||
|
|
||||||
return liberator.completion.filterURLArray(history, filter);
|
return liberator.completion.filterURLArray(history, filter);
|
||||||
},
|
},
|
||||||
|
|
||||||
// the history is automatically added to the Places global history
|
// the history is automatically added to the Places global history
|
||||||
@@ -669,7 +666,7 @@ liberator.History = function () //{{{
|
|||||||
return elem[0] != url;
|
return elem[0] != url;
|
||||||
});
|
});
|
||||||
|
|
||||||
history.unshift([url, title]);
|
history.unshift([url, title || "[No title]"]);
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ liberator.Events = function () //{{{
|
|||||||
var url = doc.defaultView.location.href;
|
var url = doc.defaultView.location.href;
|
||||||
var title = doc.defaultView.title;
|
var title = doc.defaultView.title;
|
||||||
|
|
||||||
//update history
|
// update history
|
||||||
if (url && liberator.history)
|
if (url && liberator.history)
|
||||||
liberator.history.add(url, title);
|
liberator.history.add(url, title);
|
||||||
|
|
||||||
|
|||||||
@@ -98,12 +98,12 @@ liberator.config = { //{{{
|
|||||||
],
|
],
|
||||||
|
|
||||||
// they are sorted by relevance, not alphabetically
|
// they are sorted by relevance, not alphabetically
|
||||||
helpFiles: ["intro.html", "tutorial.html", "starting.html",
|
helpFiles: ["intro.html"],/* "tutorial.html", "starting.html",
|
||||||
"browsing.html", "buffer.html", "pattern.html", "options.html",
|
"browsing.html", "buffer.html", "pattern.html", "options.html",
|
||||||
"tabs.html", "hints.html", "map.html", "eval.html", "marks.html",
|
"tabs.html", "hints.html", "map.html", "eval.html", "marks.html",
|
||||||
"repeat.html", "autocommands.html", "print.html", "developer.html",
|
"repeat.html", "autocommands.html", "print.html", "developer.html",
|
||||||
"various.html"
|
"various.html"
|
||||||
],
|
],*/
|
||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user