r67648 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67647‎ | r67648 | r67649 >
Date:18:08, 8 June 2010
Author:neilk
Status:deferred
Tags:
Comment:
made documentation terse
Modified paths:
  • /trunk/extensions/UploadWizard/js/jquery/plugins/jquery.arrowSteps.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/js/jquery/plugins/jquery.arrowSteps.js
@@ -8,31 +8,39 @@
99 * Derivative works and later versions of the code must be free software
1010 * licensed under the same or a compatible license.
1111 *
12 - * Sometimes we want to show the user their progress through steps. One typical
13 - * way to show this is with a row of text blocks connected by arrows, with the
14 - * current step highlighted.
1512 *
16 - * Create a list in HTML -- ordered or unordered. It works better if it has a fixed width.
 13+ * DESCRIPTION
1714 *
18 - * <ul id="robin-hood-daffy" style="width:600px">
19 - * <li id="guard">Guard!</li>
20 - * <li id="turn"/>Turn!</li>
21 - * <li id="parry"/>Parry!</li>
22 - * <li id="dodge"/>Dodge!</li>
23 - * <li id="spin"/>Spin!</li>
24 - * <li id="ha"/>Ha!</li>
25 - * <li id="thrust"/>Thrust!</li>
26 - * </ul>
 15+ * Show users their progress through a series of steps, via a row of items that fit
 16+ * together like arrows. One item can be highlighted at a time.
2717 *
28 - * Initialize:
2918 *
 19+ * SYNOPSIS
 20+ *
 21+ * <ul id="robin-hood-daffy" style="width:600px">
 22+ * <li id="guard">Guard!</li>
 23+ * <li id="turn"/>Turn!</li>
 24+ * <li id="parry"/>Parry!</li>
 25+ * <li id="dodge"/>Dodge!</li>
 26+ * <li id="spin"/>Spin!</li>
 27+ * <li id="ha"/>Ha!</li>
 28+ * <li id="thrust"/>Thrust!</li>
 29+ * </ul>
 30+ *
 31+ * <script language="javascript"><!--
3032 * $( '#robin-hood-daffy' ).arrowSteps();
31 - *
32 - * And then use:
33 - *
 33+ *
3434 * $( '#robin-hood-daffy' ).arrowStepsHighlight( '#guard' );
 35+ * // 'Guard!' is highlighted.
3536 *
 37+ * // ... user completes the 'guard' step ...
 38+ *
 39+ * $( '#robin-hood-daffy' ).arrowStepsHighlight( '#turn' );
 40+ * // 'Turn!' is highlighted.
3641 *
 42+ * //-->
 43+ * </script>
 44+ *
3745 */
3846
3947 ( function( $j ) {

Status & tagging log