Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | */ |
24 | 24 | |
25 | 25 | function MessageCheckUpdater( callback ) { |
26 | | - this.callback = callback; |
| 26 | + var callback = callback; |
27 | 27 | |
28 | 28 | this.act = function() { |
29 | 29 | callback(); |
— | — | @@ -161,8 +161,10 @@ |
162 | 162 | var namespace = title.replace( /:.*/, ""); |
163 | 163 | var found = false; |
164 | 164 | for ( key in trlKeys ) { |
| 165 | + if ( !typeof key !== "string" ) { continue; } |
165 | 166 | value = trlKeys[key]; |
166 | 167 | if (found) { |
| 168 | + console.log( value ); |
167 | 169 | return trlOpenJsEdit( namespace + ":" + value ); |
168 | 170 | } else if( page === value ) { |
169 | 171 | found = true; |