Index: trunk/extensions/SemanticWatchlist/specials/jquery.watchlistcondition.js |
— | — | @@ -121,7 +121,8 @@ |
122 | 122 | this.append( |
123 | 123 | $( '<input />' ).attr( { |
124 | 124 | 'type': 'button', |
125 | | - 'value': mediaWiki.msg( 'swl-group-save' ) |
| 125 | + 'value': mediaWiki.msg( 'swl-group-save' ), |
| 126 | + 'class': 'swl-save' |
126 | 127 | } ).click( function() { |
127 | 128 | this.disabled = true; |
128 | 129 | var button = this; |
Index: trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php |
— | — | @@ -72,6 +72,15 @@ |
73 | 73 | |
74 | 74 | $wgOut->addHTML( implode( '', $groupsHtml ) ); |
75 | 75 | |
| 76 | + $wgOut->addHTML( Html::element( |
| 77 | + 'input', |
| 78 | + array( |
| 79 | + 'type' => 'button', |
| 80 | + 'value' => wfMsg( 'swl-group-save-all' ), |
| 81 | + 'id' => 'swl-save-all' |
| 82 | + ) |
| 83 | + ) ); |
| 84 | + |
76 | 85 | $wgOut->addModules( 'ext.swl.watchlistconditions' ); |
77 | 86 | } |
78 | 87 | |
Index: trunk/extensions/SemanticWatchlist/specials/ext.swl.watchlistconditions.js |
— | — | @@ -33,4 +33,8 @@ |
34 | 34 | ); |
35 | 35 | }); |
36 | 36 | |
| 37 | + $( '#swl-save-all' ).click( function() { |
| 38 | + $( '.swl-save' ).click(); |
| 39 | + } ); |
| 40 | + |
37 | 41 | } ); })(jQuery); |
\ No newline at end of file |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php |
— | — | @@ -38,6 +38,7 @@ |
39 | 39 | 'swl-group-namespace' => 'namespace', |
40 | 40 | 'swl-group-concept' => 'concept', |
41 | 41 | 'swl-group-confirmdelete' => 'Are you sure you want to delete the "$1" watchlist group?', |
| 42 | + 'swl-group-save-all' => 'Save all', |
42 | 43 | |
43 | 44 | // Special:SemanticWatchlist |
44 | 45 | 'swl-watchlist-position' => "Showing '''$1''' of the last changes starting with '''#$2'''.", |