Commit Graph

37 Commits

Author SHA1 Message Date
d367cff8c5 Fix pull request 2015-10-10 23:56:46 +02:00
05a84c6630 Add removeHook method.
- Removes a previously attached hook.
- Must be the SAME function to unregister.
2015-10-10 23:38:05 +02:00
570f7a0f9a plugin: cache recently loaded portal details and always render on the map 2015-06-29 19:02:11 +01:00
4c7b8e0e70 new search 2015-02-12 16:06:48 +01:00
2def40c847 Remove old hook 2014-09-13 19:54:12 +02:00
2e4b54e868 helper function for plugins to create new hooks 2014-07-04 19:38:21 +01:00
9fde200f70 add a js debugger breakpoint into 'unknown hook' error case 2013-12-17 03:25:03 +00:00
ad6a447bde Allow plugins to add panes to mobile nav drawer 2013-12-02 23:40:25 +01:00
c5b93234a9 Merge pull request #672 from nexushoratio/to-push
To push
2013-12-02 09:57:25 -08:00
4d8054c0d4 Merge branch 'to-push' of github.com:nexushoratio/ingress-intel-total-conversion into to-push
Conflicts:
	plugins/portal-defense.user.js
	plugins/show-linked-portals.user.js
2013-12-02 02:18:03 -08:00
7d923ee64e add a debugger breakpoint in hook exception handling 2013-12-02 06:08:39 +00:00
138a37d777 first attempt at loading portal details, and displaying in the sidebar once loaded 2013-12-01 00:08:25 +00:00
7a07f622de Fix a variety of typos. 2013-11-26 23:55:08 -08:00
dfd91de6dc New hook: playerNameResolved
Called when unresolved player name get resolved. Argument is {names: object} which names[guid] is the resolved player name
2013-09-20 13:42:49 +08:00
aad3c77ff9 add linkAdded and fieldAdded hooks, to mirror the portalAdded hook 2013-09-17 07:33:14 +01:00
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
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
ff5134e45e remove comments describing a removed hook 2013-08-30 17:40:56 +01:00
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
571a17d84b work-in-progress - committing to switch to other work 2013-08-27 21:04:28 +01:00
3c90960e4c work-in-progress - checking in while looking at other code on master. may be broken 2013-08-25 17:50:28 +01:00
6cd3328389 Add 'iitcLoaded' hook to notify that IITC and all plugins loaded. 2013-05-08 20:47:41 +08:00
1f10846c6b Update hook documentation 2013-04-13 21:34:56 -07:00
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
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
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
a0bc896559 Add a new hook after receiving new faction messages 2013-03-12 12:33:44 +00:00
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
459c4b422b new hook to let plugins indicate a renderlimit 2013-02-25 08:44:43 +01:00
0c854bf9f5 Added beforePortalReRender to VALID_HOOKS 2013-02-23 17:57:40 +01:00
0ada93ea75 merge parts of #236 (by ShawnTuatara) 2013-02-23 14:02:19 +01:00
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
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
044b5f2147 add hook for chat data 2013-02-18 11:12:26 +01:00
132573e6ea Update code/hooks.js 2013-02-17 21:02:21 -05:00
cd23248576 add portalDetailsUpdated hook 2013-02-16 13:43:37 +01:00
1bbbe05a86 add hooks framework and add hook for portal added (fixes #87) 2013-02-10 23:07:33 +01:00