Changeset 2092


Ignore:
Timestamp:
Oct 21, 2013, 12:52:46 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Do not attempt to set html if tag doesn't exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/reggie.js

    r2084 r2092  
    1111{
    1212  var tag = document.getElementById(id);
    13   if (!tag) alert('No tag with id='+id);
    14   tag.innerHTML = html;
     13  if (!tag)
     14  {
     15    alert('No tag with id='+id);
     16  }
     17  else
     18  {
     19    tag.innerHTML = html;
     20  }
    1521}
    1622
Note: See TracChangeset for help on using the changeset viewer.