Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-4043

URL relationship type description not updating

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Bug Fixes, 2012-02-20
    • None
    • None
    • None
    • Opera 11+; Windows XP

      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);
      })();

            acid2 Oliver Charles
            jesus2099 jesus2099
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                Bug Fixes, 2012-02-20