r88454 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88453‎ | r88454 | r88455 >
Date:15:31, 20 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
added save all button
Modified paths:
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/specials/ext.swl.watchlistconditions.js (modified) (history)
  • /trunk/extensions/SemanticWatchlist/specials/jquery.watchlistcondition.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticWatchlist/specials/jquery.watchlistcondition.js
@@ -121,7 +121,8 @@
122122 this.append(
123123 $( '<input />' ).attr( {
124124 'type': 'button',
125 - 'value': mediaWiki.msg( 'swl-group-save' )
 125+ 'value': mediaWiki.msg( 'swl-group-save' ),
 126+ 'class': 'swl-save'
126127 } ).click( function() {
127128 this.disabled = true;
128129 var button = this;
Index: trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php
@@ -72,6 +72,15 @@
7373
7474 $wgOut->addHTML( implode( '', $groupsHtml ) );
7575
 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+
7685 $wgOut->addModules( 'ext.swl.watchlistconditions' );
7786 }
7887
Index: trunk/extensions/SemanticWatchlist/specials/ext.swl.watchlistconditions.js
@@ -33,4 +33,8 @@
3434 );
3535 });
3636
 37+ $( '#swl-save-all' ).click( function() {
 38+ $( '.swl-save' ).click();
 39+ } );
 40+
3741 } ); })(jQuery);
\ No newline at end of file
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
@@ -38,6 +38,7 @@
3939 'swl-group-namespace' => 'namespace',
4040 'swl-group-concept' => 'concept',
4141 'swl-group-confirmdelete' => 'Are you sure you want to delete the "$1" watchlist group?',
 42+ 'swl-group-save-all' => 'Save all',
4243
4344 // Special:SemanticWatchlist
4445 'swl-watchlist-position' => "Showing '''$1''' of the last changes starting with '''#$2'''.",

Status & tagging log