Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | 'modal': true, |
47 | 47 | 'title': mediaWiki.msg( 'articlefeedback-survey-title' ), |
48 | 48 | 'close': function() { |
49 | | - $( this ) |
| 49 | + $(this) |
50 | 50 | .dialog( 'option', 'height', 400 ) |
51 | 51 | .find( '.articleFeedback-success-msg, .articleFeedback-error-msg' ) |
52 | 52 | .remove() |
— | — | @@ -55,10 +55,19 @@ |
56 | 56 | } |
57 | 57 | } ); |
58 | 58 | $dialog.load( |
59 | | - wgScript + '?title=Special:SimpleSurvey&survey=articlerating&raw=1', |
| 59 | + mediaWiki.config.get( 'wgScript' ) + |
| 60 | + '?title=Special:SimpleSurvey&survey=articlerating&raw=1', |
60 | 61 | function() { |
61 | | - //$( this ).find( 'form' ).bind( 'submit', $.ArticleAssessment.fn.submitFeedback ); |
62 | | - $( this ).removeClass( 'loading' ); |
| 62 | + $(this) |
| 63 | + .append( |
| 64 | + $( '<button></button>' ) |
| 65 | + .text( $(this).find( 'input[type=submit]' ).val() ) |
| 66 | + .button() |
| 67 | + ) |
| 68 | + .find( 'input[type=submit]' ) |
| 69 | + .remove() |
| 70 | + .end() |
| 71 | + .removeClass( 'loading' ); |
63 | 72 | } |
64 | 73 | ); |
65 | 74 | } |
Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.css |
— | — | @@ -1,3 +1,7 @@ |
2 | 2 | /* |
3 | 3 | * Styles for Article Feedback Extension |
4 | 4 | */ |
| 5 | +#articleFeedback-dialog { |
| 6 | + padding: 2em; |
| 7 | + padding-top: 1em; |
| 8 | +} |
\ No newline at end of file |