mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
Manual indentation of $.ajax() call in discogs_importer.user.js.
Follow-up to commit 1a3a2414dc
.
This commit is contained in:
parent
1a3a2414dc
commit
bf39917070
1 changed files with 13 additions and 13 deletions
|
@ -50,19 +50,19 @@ $(document).ready(function(){
|
|||
$ = unsafeWindow.$;
|
||||
|
||||
$.ajax({
|
||||
url: discogsWsUrl,
|
||||
dataType: 'jsonp',
|
||||
headers: { 'Accept-Encoding': 'gzip', 'User-Agent': 'MBDiscosgImporter/0.1 +http://userscripts.org/scripts/show/36376' },
|
||||
crossDomain: true,
|
||||
success: function (data, textStatus, jqXHR) {
|
||||
//mylog(data);
|
||||
var release = parseDiscogsRelease(data);
|
||||
insertLink(release);
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
mylog("AJAX Status:" + textStatus);
|
||||
mylog("AJAX error thrown:" + errorThrown);
|
||||
}
|
||||
url: discogsWsUrl,
|
||||
dataType: 'jsonp',
|
||||
headers: { 'Accept-Encoding': 'gzip', 'User-Agent': 'MBDiscosgImporter/0.1 +http://userscripts.org/scripts/show/36376' },
|
||||
crossDomain: true,
|
||||
success: function (data, textStatus, jqXHR) {
|
||||
//mylog(data);
|
||||
var release = parseDiscogsRelease(data);
|
||||
insertLink(release);
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
mylog("AJAX Status:" + textStatus);
|
||||
mylog("AJAX error thrown:" + errorThrown);
|
||||
}
|
||||
});
|
||||
|
||||
// Back to GreaseMonkey's JQuery
|
||||
|
|
Loading…
Reference in a new issue