[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/resources/src/mediawiki.page/ -> mediawiki.page.watch.ajax.js (summary)

Animate watch/unwatch links to use asynchronous API requests to watch pages, rather than navigating to a different URI.

File Size: 178 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  updateWatchLink()
  mwUriGetAction()

Functions
Functions that are not part of a class:

updateWatchLink( $link, action, state )   X-Ref
Update the link text, link href attribute and (if applicable)
"loading" class.

param: {jQuery} $link Anchor tag of (un)watch link
param: {string} action One of 'watch', 'unwatch'
param: {string} [state="idle"] 'idle' or 'loading'. Default is 'idle'

mwUriGetAction( url )   X-Ref
TODO: This should be moved somewhere more accessible.

param: {string} url
return: {string} The extracted action, defaults to 'view'



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1