Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -188,6 +188,7 @@ |
189 | 189 | 'articlefeedbackv5-sitesub-linktext' => 'Improve this page', |
190 | 190 | 'articlefeedbackv5-titlebar-linktext' => 'Help improve this page >>', |
191 | 191 | 'articlefeedbackv5-fixedtab-linktext' => 'Improve this page', |
| 192 | + 'articlefeedbackv5-bottomrighttab-linktext' => 'Improve this page', |
192 | 193 | 'articlefeedbackv5-section-linktext' => 'feedback', |
193 | 194 | 'articlefeedbackv5-toolbox-linktext' => 'Improve this page', |
194 | 195 | |
— | — | @@ -377,6 +378,7 @@ |
378 | 379 | 'articlefeedbackv5-sitesub-linktext' => 'When a link to pop up the feedback tool appears just below the title bar to the far left, this will be the link text.', |
379 | 380 | 'articlefeedbackv5-titlebar-linktext' => 'When a link to pop up the feedback tool appears just below the title bar to the far right, this will be the link text.', |
380 | 381 | 'articlefeedbackv5-fixedtab-linktext' => 'When a link to pop up the feedback tool appears as a fixed-positioned tab, this will be the link text', |
| 382 | + 'articlefeedbackv5-bottomrighttab-linktext' => 'When a link to pop up the feedback tool appears as a fixed-positioned tab at the bottom right, this will be the link text', |
381 | 383 | 'articlefeedbackv5-section-linktext' => 'When a link to pop up the feedback tool appears on the article section headers, next to [edit], this will be the text inside the brackets immediately following (e.g. "[edit] [feedback]"). |
382 | 384 | {{Identical|Feedback}}', |
383 | 385 | 'articlefeedbackv5-toolbox-linktext' => 'When a link to pop up the feedback tool appears at the bottom of the toolbox area in the sidebar, this will be the link text.', |
Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.css |
— | — | @@ -60,3 +60,31 @@ |
61 | 61 | text-decoration: none; |
62 | 62 | } |
63 | 63 | |
| 64 | +.articleFeedbackv5-bottomrighttab { |
| 65 | + position: fixed; |
| 66 | + margin: 0; |
| 67 | + right: 0; |
| 68 | + bottom: 0; |
| 69 | + height: 27px; |
| 70 | + width: 141px; |
| 71 | +} |
| 72 | +.articleFeedbackv5-bottomrighttabbox { |
| 73 | + position: relative; |
| 74 | +} |
| 75 | +.articleFeedbackv5-bottomrighttablink { |
| 76 | + border: none; |
| 77 | + color: #fff; |
| 78 | + background-color: #5373a6; |
| 79 | + min-width: 105px; |
| 80 | + right: 0; |
| 81 | + display: block; |
| 82 | + margin: 0; |
| 83 | + padding: 5px 10px; |
| 84 | + text-align: center; |
| 85 | + position: absolute; |
| 86 | + z-index: 100000; |
| 87 | +} |
| 88 | +.articleFeedbackv5-bottomrighttablink:hover { |
| 89 | + text-decoration: none; |
| 90 | +} |
| 91 | + |
Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.js |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | 'A': { trackId: 'sitesub-link' }, |
25 | 25 | 'B': { trackId: 'titlebar-link' }, |
26 | 26 | 'C': { trackId: 'vertical-link' }, |
| 27 | + 'D': { trackId: 'bottomright-link' }, |
27 | 28 | 'H': { trackId: 'section-link' }, |
28 | 29 | 'tbx': { trackId: 'toolbox-link' } |
29 | 30 | }; |
— | — | @@ -132,7 +133,26 @@ |
133 | 134 | } |
134 | 135 | |
135 | 136 | // D: Button fixed to bottom right |
136 | | -// NOT IMPLEMENTED |
| 137 | +if ( 'D' == linkBucket ) { |
| 138 | + var $bottomRightTab = $( '\ |
| 139 | + <div id="articleFeedbackv5-bottomrighttab">\ |
| 140 | + <div id="articleFeedbackv5-bottomrighttabbox">\ |
| 141 | + <a href="#mw-articleFeedbackv5" id="articleFeedbackv5-bottomrighttablink"></a>\ |
| 142 | + </div>\ |
| 143 | + </div>' ); |
| 144 | + $bottomRightTab.find( '#articleFeedbackv5-bottomrighttablink' ) |
| 145 | + .data( 'linkId', 'D' ) |
| 146 | + .html( mw.msg( 'articlefeedbackv5-bottomrighttab-linktext' ) ) |
| 147 | + .click( function( e ) { |
| 148 | + e.preventDefault(); |
| 149 | + clickFeedbackLink( $( e.target ) ); |
| 150 | + } ); |
| 151 | + $bottomRightTab.insertBefore( $aftDiv ); |
| 152 | + $bottomRightTab.addClass( 'articleFeedbackv5-bottomrighttab' ); |
| 153 | + $bottomRightTab.find( '#articleFeedbackv5-bottomrighttabbox' ).addClass( 'articleFeedbackv5-bottomrighttabbox' ); |
| 154 | + $bottomRightTab.find( '#articleFeedbackv5-bottomrighttablink' ).addClass( 'articleFeedbackv5-bottomrighttablink' ); |
| 155 | + $aftDiv.articleFeedbackv5( 'addToRemovalQueue', $bottomRightTab ); |
| 156 | +} |
137 | 157 | |
138 | 158 | // E: Button fixed to bottom center |
139 | 159 | // NOT IMPLEMENTED |
Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.php |
— | — | @@ -128,11 +128,11 @@ |
129 | 129 | // G: Button below logo |
130 | 130 | // H: Link on each section bar |
131 | 131 | 'buckets' => array( |
132 | | - '-' => 34, |
133 | | - 'A' => 33, |
134 | | - 'B' => 0, |
| 132 | + '-' => 25, |
| 133 | + 'A' => 25, |
| 134 | + 'B' => 25, |
135 | 135 | 'C' => 0, |
136 | | - 'D' => 33, |
| 136 | + 'D' => 25, |
137 | 137 | 'E' => 0, |
138 | 138 | 'F' => 0, |
139 | 139 | 'G' => 0, |
Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php |
— | — | @@ -27,6 +27,7 @@ |
28 | 28 | 'articlefeedbackv5-sitesub-linktext', |
29 | 29 | 'articlefeedbackv5-titlebar-linktext', |
30 | 30 | 'articlefeedbackv5-fixedtab-linktext', |
| 31 | + 'articlefeedbackv5-bottomrighttab-linktext', |
31 | 32 | 'articlefeedbackv5-section-linktext', |
32 | 33 | 'articlefeedbackv5-toolbox-linktext', |
33 | 34 | 'articlefeedbackv5-bucket5-toolbox-linktext', |