Issue Details (XML | Word | Printable)

Key: MBS-4043
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Oliver Charles
Reporter: patate12
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

URL relationship type description not updating

Created: 22/Dec/11 10:13 AM   Updated: 21/Feb/12 06:29 PM   Resolved: 21/Feb/12 06:29 PM
Component/s: None
Affects Version/s: None
Fix Version/s: Bug Fixes, 2012-02-20

Environment: Opera 11+; Windows XP
Issue Links:
Relates
 


 Description  « Hide

I've seen this for quite a while but just hoped it would be spotted and fixed.
When I paste a recognised URL in the Relate to URL/Add URL relationship page, the URL type select is updated to what type it has detected but not the URL type description (type_descr) that is below.
Maybe Opera gets events wrong, here is what I added to a userjs so that the page works :

javascript
(function () {
	//typeInfo is provided by MB
	//getting related HTML objects below
	var selectType = document.getElementById("id-ar.link_type_id");
	var divTypeDescr = document.getElementById("type_descr");
	var txtUrl = document.getElementById("id-ar.url");
	//updating description when typed something
	txtUrl.addEventListener("keyup", function(e) {
		if (typeInfo[selectType.value]) {
			divTypeDescr.innerHTML = typeInfo[selectType.value].descr;
		}
	}, false);
})();


Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 21/Feb/12 04:11 PM

I believe this is fixed with dbb399a3.


patate12 added a comment - 21/Feb/12 06:29 PM

The bug is still there without my user script
I tested pasting a recognised pattern in http://musicbrainz.org/edit/relationship/create_url?entity=88d8f38f-adb4-48a0-8c1f-ec34f2a675ff&type=artist
It selects the correct type but doesn't display the descriptoin.


Oliver Charles added a comment - 21/Feb/12 06:29 PM

As always, this won't be released until you see a blog post.