Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -97,6 +97,8 @@ |
98 | 98 | enter an e-mail address. |
99 | 99 | * (bug 25375) Add canonical namespaces to JavaScript "wgNamespaceIds" |
100 | 100 | * The class JpegOrTiffHandler was renamed ExifBitmapHandler. |
| 101 | +* (bug 29443) Special:Undelete should use JavaScript to invert all checkboxes |
| 102 | + without reloading the page |
101 | 103 | |
102 | 104 | === API changes in 1.19 === |
103 | 105 | * BREAKING CHANGE: action=watch now requires POST and token. |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -1070,11 +1070,11 @@ |
1071 | 1071 | |
1072 | 1072 | $sk = $wgUser->getSkin(); |
1073 | 1073 | if( $this->mAllowed ) { |
| 1074 | + $wgOut->addModules( 'mediawiki.special.undelete' ); |
1074 | 1075 | $wgOut->setPageTitle( wfMsg( 'undeletepage' ) ); |
1075 | 1076 | } else { |
1076 | 1077 | $wgOut->setPageTitle( wfMsg( 'viewdeletedpage' ) ); |
1077 | 1078 | } |
1078 | | - |
1079 | 1079 | $wgOut->wrapWikiMsg( |
1080 | 1080 | "<div class='mw-undelete-pagetitle'>\n$1\n</div>\n", |
1081 | 1081 | array( 'undeletepagetitle', $this->mTargetObj->getPrefixedText() ) |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -518,6 +518,9 @@ |
519 | 519 | 'mediawiki.special.block' => array( |
520 | 520 | 'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js', |
521 | 521 | ), |
| 522 | + 'mediawiki.special.undelete' => array( |
| 523 | + 'scripts' => 'resources/mediawiki.special/mediawiki.special.undelete.js', |
| 524 | + ), |
522 | 525 | 'mediawiki.special.movePage' => array( |
523 | 526 | 'scripts' => 'resources/mediawiki.special/mediawiki.special.movePage.js', |
524 | 527 | 'dependencies' => 'jquery.byteLimit', |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.undelete.js |
— | — | @@ -0,0 +1,15 @@ |
| 2 | +/* |
| 3 | + * JavaScript for Specical:Undelete |
| 4 | + * @author: Code taken from [[b:MediaWiki:Gadget-EnhancedUndelete.js]] (originally written by [[b:User:Darklama]]) |
| 5 | + */ |
| 6 | +( function( $ ) { |
| 7 | + $(function() { |
| 8 | + $('#mw-undelete-invert').click( function(e) { |
| 9 | + e.stopImmediatePropagation(); |
| 10 | + $('input:checkbox').each( function() { |
| 11 | + this.checked = !this.checked; |
| 12 | + }); |
| 13 | + return false; |
| 14 | + }); |
| 15 | + }); |
| 16 | +} )( jQuery ); |
Property changes on: trunk/phase3/resources/mediawiki.special/mediawiki.special.undelete.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 17 | + native |