r95273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95272‎ | r95273 | r95274 >
Date:23:11, 22 August 2011
Author:neilk
Status:reverted
Tags:
Comment:
fixing buttons to work with old jquery ui
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/UploadWizard/resources/jquery/jquery.mwCoolCats.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/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( {

Follow-up revisions

RevisionCommit summaryAuthorDate
r95285reverting hacks to get UploadWizard deploy to work (r95273, r95267, r95266)neilk23:54, 22 August 2011

Status & tagging log