Manual indentation of $.ajax() call in discogs_importer.user.js.

Follow-up to commit 1a3a2414dc.
This commit is contained in:
Frederik "Freso" S. Olesen 2014-02-21 19:25:49 +01:00
parent 1a3a2414dc
commit bf39917070

View file

@ -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