jquery.confirmable: New inline confirmation module
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 28 Oct 2013 14:56:30 +0000 (15:56 +0100)
committerLegoktm <legoktm.wikipedia@gmail.com>
Wed, 6 Aug 2014 12:30:52 +0000 (12:30 +0000)
commit13a14c70c664372f542d33902c9266414930577d
tree774bb9558407e6cffcae7b8c8f91028d159b953f
parent02936f3d9541f524c82283bb81b3c1e57816ce71
jquery.confirmable: New inline confirmation module

$().confirmable() can be applied to any inline-block element. It will
cause it to expand into "Are you sure? [Yes] [No]" question and
buttons when clicked, where the buttons are clones of the original
element: [Yes] will carry out the default action (or a different one,
if specified), [No] will collapse the interface back.

Possible uses include:
* Confirmable "rollback" links
* Confirmable "unwatch" links on watchlists
* Confirmable "thank" links (Echo extension's ones)

Added a demo with possible uses on history and watchlist pages.
Included Hebrew messages courtesy of Moriel.

Change-Id: I2f6e0bd4f6f0a84e1a0d7193cde076738f3cdd25
docs/uidesign/confirmable.html [new file with mode: 0644]
languages/i18n/en.json
languages/i18n/he.json
languages/i18n/qqq.json
maintenance/jsduck/config.json
resources/Resources.php
resources/src/jquery/jquery.confirmable.css [new file with mode: 0644]
resources/src/jquery/jquery.confirmable.js [new file with mode: 0644]
resources/src/jquery/jquery.confirmable.mediawiki.js [new file with mode: 0644]