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

URL relationship type description not updating

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Bug Fixes, 2012-02-20
    • Component/s: None
    • Labels:
      None
    • Environment:
      Opera 11+; Windows XP

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Bug Fixes, 2012-02-20