r95283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95282‎ | r95283 | r95284 >
Date:23:48, 22 August 2011
Author:neilk
Status:ok
Tags:
Comment:
fixes for category buttons with older jquery
Modified paths:
  • /branches/uploadwizard-deployment2/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js (modified) (history)

Diff [purge]

Index: branches/uploadwizard-deployment2/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js
@@ -24,21 +24,14 @@
2525 };
2626
2727 var confirmIt = function() {
28 - var buttons = [
29 - {
30 - text: gM( 'mw-coolcats-confirm-new-cancel' ),
31 - click: function() {
32 - $( this ).dialog( "close" );
33 - }
34 - },
35 - {
36 - text: gM( 'mw-coolcats-confirm-new-ok' ),
37 - click: function() {
38 - insertIt();
39 - $( this ).dialog( "close" );
40 - }
41 - }
42 - ];
 28+ var buttons = {};
 29+ buttons[ gM( 'mw-coolcats-confirm-new-cancel' ) ] = function() {
 30+ $( this ).dialog( "close" );
 31+ };
 32+ buttons[ gM( 'mw-coolcats-confirm-new-ok' ) ] = function() {
 33+ insertIt();
 34+ $( this ).dialog( "close" );
 35+ };
4336 $j( '<div></div>' )
4437 .msg( 'mw-coolcats-confirm-new', title.getMainText() )
4538 .dialog( {

Status & tagging log