Index: trunk/extensions/Kieli/ext.kieli.js |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | }; |
46 | 46 | $.get( mw.util.wikiScript( "api" ), params, $.kieli.buildMenu ); |
47 | 47 | |
48 | | - var params = { |
| 48 | + params = { |
49 | 49 | action: "query", |
50 | 50 | meta: "siteinfo", |
51 | 51 | siprop: "languages", |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | var localnames = mw.config.get( "wgKieliLanguages" ); |
61 | 61 | for ( var i = 0; i < languages.length; i++ ) { |
62 | 62 | var name = languages[i]["*"]; |
63 | | - var code = languages[i]["code"]; |
| 63 | + var code = languages[i].code; |
64 | 64 | if ( localnames[code] && localnames[code] !== name ) { |
65 | 65 | var localnamecode = localnames[code] + " (" + code + ")"; |
66 | 66 | langlist.push( { label: localnamecode, value: code } ); |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | var name = names && names[id] || id; |
125 | 125 | |
126 | 126 | var $link = $( '<input type="radio" name="language" />' ) |
127 | | - .val( id ) |
| 127 | + .val( id ); |
128 | 128 | if ( id === current ) { |
129 | 129 | $link = $link.attr( "checked", true ); |
130 | 130 | } |