Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.i18n.php |
— | — | @@ -41,10 +41,10 @@ |
42 | 42 | 'ac-action-create' => 'Create this article myself', |
43 | 43 | 'ac-action-create-subtitle' => 'I know what I\'m doing.', |
44 | 44 | 'ac-create-warning-create' => "Articles may be deleted immediately if: |
45 | | - they copy from other sources, or |
46 | | - are overly promotional, or |
47 | | - lack context, or |
48 | | - fail to explain why their subject is notable. |
| 45 | + <ul><li>they copy from other sources, or</li> |
| 46 | + <li>are overly promotional, or</li> |
| 47 | + <li>lack context, or</li> |
| 48 | + <li>fail to explain why their subject is notable.</li></ul> |
49 | 49 | ", |
50 | 50 | 'ac-create-button' => "Let's Go", |
51 | 51 | 'ac-hover-tooltip-body-create' => "<ul><li>You have created articles before, and</li> |
Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js |
— | — | @@ -11,6 +11,22 @@ |
12 | 12 | |
13 | 13 | ac.setupTooltips(); |
14 | 14 | |
| 15 | + $(document).click( function(e) { |
| 16 | + $('.ac-article-button') |
| 17 | + //remove green states and hide their tooltips |
| 18 | + .removeClass('ac-button-green') |
| 19 | + .removeClass('ac-button-selected') |
| 20 | + .each ( function (i, e) { |
| 21 | + $(this) .parent() |
| 22 | + .find('.mw-ac-tooltip') |
| 23 | + .hide(); |
| 24 | + }); |
| 25 | + |
| 26 | + ac.panel |
| 27 | + .find('.mw-ac-interstitial') |
| 28 | + .hide(); |
| 29 | + } ); |
| 30 | + |
15 | 31 | //setup button hover states |
16 | 32 | ac.panel |
17 | 33 | .find( '.ac-article-button' ) |
— | — | @@ -22,7 +38,7 @@ |
23 | 39 | //attach other events here, just making first tooltip for now |
24 | 40 | //testing hover effects |
25 | 41 | .hover (function (){ |
26 | | - if ( $(this).hasClass('ac-button-selected') ) |
| 42 | + if ( $('.ac-button-selected') ) |
27 | 43 | return; |
28 | 44 | |
29 | 45 | $( this ).parent() |
— | — | @@ -50,6 +66,7 @@ |
51 | 67 | .find('.ac-article-button') |
52 | 68 | .click (function (e) { |
53 | 69 | e.preventDefault(); |
| 70 | + e.stopPropagation(); |
54 | 71 | |
55 | 72 | $('.ac-article-button') |
56 | 73 | //remove green states and hide their tooltips |
— | — | @@ -109,6 +126,7 @@ |
110 | 127 | .find('.ac-action-button') |
111 | 128 | .click( function(e) { |
112 | 129 | e.preventDefault(); |
| 130 | + e.stopPropagation(); |
113 | 131 | ac.executeAction($(this).data('ac-action')); |
114 | 132 | } ); |
115 | 133 | }, |
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | <a class="mw-ac-help" href="http://www.google.com"><html:msg key="ac-create-help" /></a> |
138 | 138 | <div class="mw-ac-tooltip-title"><html:msg key="ac-click-tip-title-create" /></div> |
139 | 139 | <div class="mw-ac-tooltip-body"> |
140 | | - <div class="mw-ac-create-verbiage"><html:msg key="ac-create-warning-create" /></div> |
| 140 | + <div class="mw-ac-create-verbiage"><html:msg raw="1" key="ac-create-warning-create" /></div> |
141 | 141 | <div class="ac-button-wrap"> |
142 | 142 | <a class="ac-button-green ac-button ac-action-button" data-ac-action="create"> |
143 | 143 | <div class="ac-arrow ac-arrow-forward"> </div> |