22 Commits

Author SHA1 Message Date
Jon Atkins
ac9d9cfaf0 trap exceptions when running hooks, log the error, and continue
should reduce issues caused when plugins are broken
2013-09-05 03:42:36 +01:00
Xelio
8f1442e1dd Refactor code of select/unselect portal. Add hook 'portalSelected' with guid of selected and unselected portal. 2013-09-05 01:59:30 +08:00
Jon Atkins
ff5134e45e remove comments describing a removed hook 2013-08-30 17:40:56 +01:00
Jon Atkins
ffd0258a7c call the requestFinished hook in the new request handling code - for plugins that need it
also make a request to hook something that doesn't exist a non-fatal error - to reduce plugin breakage for removed hooks
2013-08-29 06:36:48 +01:00
Jon Atkins
571a17d84b work-in-progress - committing to switch to other work 2013-08-27 21:04:28 +01:00
Jon Atkins
3c90960e4c work-in-progress - checking in while looking at other code on master. may be broken 2013-08-25 17:50:28 +01:00
Xelio
6cd3328389 Add 'iitcLoaded' hook to notify that IITC and all plugins loaded. 2013-05-08 20:47:41 +08:00
Fragger
1f10846c6b Update hook documentation 2013-04-13 21:34:56 -07:00
Jon Atkins
dcd88cd502 add comment clarifying "return false" in "$.each" acts as a "break" - not obvious to those less familiar with jQuery 2013-04-11 16:21:14 +01:00
Julien Roncaglia
c6118a47c2 Fix click on player name in chat doing nothing
It only worked when player tracker wasn't installed
2013-04-10 07:10:29 +02:00
Julien Roncaglia
1a8d15d1c5 Add 2 new hooks: geoSearch and nicknameClicked
For both of them returning false will interupt the default action

'geoSearch' is called when something is entered in the search box.
The argument is the string entered in the search box

'nicknameClicked' is called when a nickname is cliked.
The argument is an object with 2 properties:
 - 'event' contain the standard event object
 - 'nickname' contain the nick of the user
2013-04-09 22:40:34 +02:00
Bruno Barão
a0bc896559 Add a new hook after receiving new faction messages 2013-03-12 12:33:44 +00:00
Xelio
eb3ec79852 Add hook: requestFinished
Called after each request finished. Argument is {success: boolean} indicated the request success or fail.
2013-03-05 03:17:46 +08:00
Florian Sundermann
459c4b422b new hook to let plugins indicate a renderlimit 2013-02-25 08:44:43 +01:00
saithis
0c854bf9f5 Added beforePortalReRender to VALID_HOOKS 2013-02-23 17:57:40 +01:00
Stefan Breunig
0ada93ea75 merge parts of #236 (by ShawnTuatara) 2013-02-23 14:02:19 +01:00
Shawn Clark
a922bd36bf Adding hook portalDataLoaded
- portalDataLoaded is called during the
code/map_data.js#handleDataResponse to allow plugins to manipulate the
portals prior to rendering.
2013-02-19 22:35:32 -08:00
Stefan Breunig
f2c6c609ef Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages
Conflicts:
	code/hooks.js
2013-02-18 11:13:52 +01:00
Stefan Breunig
044b5f2147 add hook for chat data 2013-02-18 11:12:26 +01:00
master0yoshigr
132573e6ea Update code/hooks.js 2013-02-17 21:02:21 -05:00
Stefan Breunig
cd23248576 add portalDetailsUpdated hook 2013-02-16 13:43:37 +01:00
Stefan Breunig
1bbbe05a86 add hooks framework and add hook for portal added (fixes #87) 2013-02-10 23:07:33 +01:00