From 8f896f614079e6642940259e93c21405bdffd215 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 28 Sep 2009 17:30:01 +0000 Subject: [PATCH] Fixes for IE per CR (http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56032#c4178) and a few more in the same area. --- js2/ajaxcategories.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/js2/ajaxcategories.js b/js2/ajaxcategories.js index 850b01da3d..b37cd62842 100644 --- a/js2/ajaxcategories.js +++ b/js2/ajaxcategories.js @@ -27,8 +27,8 @@ var ajaxCategories = { 'cancel': function() { var req = ajaxCategories.request; if (req.abort) - req.abort() - }, + req.abort(); + } } ); $j('#mw-addcategory-input').suggestions(); @@ -131,7 +131,7 @@ var ajaxCategories = { var dialogOptions = { 'AutoOpen' : true, 'buttons' : buttons, - 'width' : 450, + 'width' : 450 }; $j('#catlinks').prepend(dialog); @@ -148,7 +148,7 @@ var ajaxCategories = { 'intoken':'edit', 'titles':page, 'rvprop':'content|timestamp', - 'format':'json', + 'format':'json' }; $j.get(wgScriptPath+'/api.php', getTokenVars, @@ -172,7 +172,7 @@ var ajaxCategories = { 'summary':summary, 'token':token, 'basetimestamp':timestamp, - 'format':'json', + 'format':'json' }; $j.post( wgScriptPath+'/api.php', postEditVars, doneFn, 'json' ); @@ -266,11 +266,13 @@ var ajaxCategories = { $j('#bodyContent').append(dialog); var buttons = {}; - buttons[gM('ajax-error-dismiss')] = function(e) { dialog.dialog('close'); }; + buttons[gM('ajax-error-dismiss')] = function(e) { + dialog.dialog('close'); + }; var dialogOptions = { 'buttons' : buttons, 'AutoOpen' : true, - 'title' : gM('ajax-error-title'), + 'title' : gM('ajax-error-title') }; dialog.dialog(dialogOptions); @@ -318,7 +320,7 @@ var ajaxCategories = { } ); clElement.append(promptContainer); - }, + } }; js2AddOnloadHook( ajaxCategories.setupAJAXCategories ); -- 2.20.1