1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 18:24:11 +01:00

add new BookmarkPost autocommand event

This commit is contained in:
Doug Kearns
2008-08-31 08:56:38 +00:00
parent 509a2cf75c
commit ab5ce77baf
4 changed files with 10 additions and 1 deletions

View File

@@ -267,6 +267,9 @@ liberator.Bookmarks = function () //{{{
//also update bookmark cache
bookmarks.unshift([url, title, keyword, tags || []]);
liberator.autocommands.trigger("BookmarkPost", "");
return true;
},

View File

@@ -38,7 +38,8 @@ liberator.config = { //{{{
get visualbellWindow() { return getBrowser().mPanelContainer; },
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
autocommands: [["BookmarkPost", "Triggered after a page is bookmarked"],
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["QuitPre", "Triggered before exiting Firefox, just before destroying each module"],