mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Quote 'class' in JS object literals
It's a reserved word, old IEs see this and bail. (Conforming browsers correctly see it's an object key and parse the literal.) Reported on the English Wikipedia's WP:VPT. Change-Id: I7a032afc6d62d09a5ec32c7c8d0af5611665ea59
This commit is contained in:
parent
c89398aa99
commit
615ec96adf
|
@ -50,7 +50,7 @@
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: mw.msg( 'ok' ),
|
text: mw.msg( 'ok' ),
|
||||||
class: 'ui-button-green',
|
'class': 'ui-button-green',
|
||||||
click: function() {
|
click: function() {
|
||||||
$( this ).dialog( "close" );
|
$( this ).dialog( "close" );
|
||||||
sendThanks( $thankLink );
|
sendThanks( $thankLink );
|
||||||
|
|
Loading…
Reference in a new issue