Index: trunk/extensions/UploadWizard/resources/mw.FlickrChecker.js |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | var photoIdMatches = url.match(/flickr.com\/photos\/[^\/]+\/([0-9]+)/); |
38 | 38 | if ( photoIdMatches && photoIdMatches[1] > 0 ) { |
39 | 39 | var photoId = photoIdMatches[1]; |
40 | | - $.getJSON( this.apiUrl + '?jsoncallback=?', { 'method': 'flickr.photos.getInfo', 'api_key': this.apiKey, 'photo_id': photoId, 'format': 'json' }, |
| 40 | + $.getJSON( this.apiUrl + 'jsoncallback=?', { 'method': 'flickr.photos.getInfo', 'api_key': this.apiKey, 'photo_id': photoId, 'format': 'json' }, |
41 | 41 | function( data ) { |
42 | 42 | if ( typeof data.photo != 'undefined' ) { |
43 | 43 | // The returned data.photo.license is just an ID that we use to look up the license name |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | * Retrieve the list of all current Flickr licenses and store it in an array (mw.FlickrChecker.licenseList) |
64 | 64 | */ |
65 | 65 | getLicenses: function() { |
66 | | - $.getJSON( this.apiUrl + '?jsoncallback=?', { 'method': 'flickr.photos.licenses.getInfo', 'api_key': this.apiKey, 'format': 'json' }, |
| 66 | + $.getJSON( this.apiUrl + 'jsoncallback=?', { 'method': 'flickr.photos.licenses.getInfo', 'api_key': this.apiKey, 'format': 'json' }, |
67 | 67 | function( data ) { |
68 | 68 | if ( typeof data.licenses != 'undefined' ) { |
69 | 69 | $.each( data.licenses.license, function(index, value) { |