Index: trunk/extensions/PageTriage/modules/ext.pageTriage.models/ext.pageTriage.article.js |
— | — | @@ -68,11 +68,7 @@ |
69 | 69 | }, |
70 | 70 | |
71 | 71 | url: function() { |
72 | | - var paramString = ''; |
73 | | - for ( var key in this.apiParams ) { |
74 | | - paramString += '&' + key + '=' + this.apiParams[key]; |
75 | | - } |
76 | | - var url = mw.util.wikiScript( 'api' ) + '?action=pagetriagelist&format=json' + paramString; |
| 72 | + var url = mw.util.wikiScript( 'api' ) + '?action=pagetriagelist&format=json&' + $.param( this.apiParams ); |
77 | 73 | console.log('fetching ' + url); |
78 | 74 | return url; |
79 | 75 | }, |