Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js |
— | — | @@ -142,8 +142,14 @@ |
143 | 143 | } ), |
144 | 144 | 'success': function( data ) { |
145 | 145 | var context = this; |
146 | | - $.articleFeedback.fn.load.call( context ); |
147 | | - context.$ui.find( '.articleFeedback-lock' ).hide(); |
| 146 | + if ( 'error' in data ) { |
| 147 | + mw.log( 'Form submission error' ); |
| 148 | + mw.log( data.error ); |
| 149 | + context.$ui.find( '.articleFeedback-error' ).show(); |
| 150 | + } else { |
| 151 | + $.articleFeedback.fn.load.call( context ); |
| 152 | + context.$ui.find( '.articleFeedback-lock' ).hide(); |
| 153 | + } |
148 | 154 | }, |
149 | 155 | 'error': function() { |
150 | 156 | var context = this; |
Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.css |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | display: none; |
25 | 25 | position: absolute; |
26 | 26 | top: 0; |
| 27 | + bottom: 0; |
27 | 28 | left: 0; |
28 | 29 | right: 0; |
29 | 30 | background-color: #f9f9f9; |