mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-11-10 13:14:16 +00:00
discogs_importer: make the musicbrainz import block appears smoothly
This commit is contained in:
parent
0f8ad4e971
commit
2b1bb7f7e1
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,7 @@ function MBIDfromUrl(url, discogs_type, mb_type) {
|
||||||
function insertLink(release, current_page_key) {
|
function insertLink(release, current_page_key) {
|
||||||
var current_page_info = link_infos[current_page_key];
|
var current_page_info = link_infos[current_page_key];
|
||||||
|
|
||||||
var mbUI = $('<div class="section musicbrainz"><h3>MusicBrainz</h3></div>');
|
var mbUI = $('<div class="section musicbrainz"><h3>MusicBrainz</h3></div>').hide();
|
||||||
|
|
||||||
var mbContentBlock = $('<div class="section_content"></div>');
|
var mbContentBlock = $('<div class="section_content"></div>');
|
||||||
mbUI.append(mbContentBlock);
|
mbUI.append(mbContentBlock);
|
||||||
|
@ -332,6 +332,7 @@ function insertLink(release, current_page_key) {
|
||||||
var mbLinkInsert = function (link) { $("div.section.musicbrainz div.section_content span").before(link); }
|
var mbLinkInsert = function (link) { $("div.section.musicbrainz div.section_content span").before(link); }
|
||||||
var cachekey = getCacheKeyFromInfo(current_page_key, 'release');
|
var cachekey = getCacheKeyFromInfo(current_page_key, 'release');
|
||||||
mblinks.searchAndDisplayMbLink(current_page_info.clean_url, 'release', mbLinkInsert, cachekey);
|
mblinks.searchAndDisplayMbLink(current_page_info.clean_url, 'release', mbLinkInsert, cachekey);
|
||||||
|
mbUI.slideDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue