Fixes based on recent testing. Key changes: EntryType DT (datetime) has been replaced...
[infodrom/rico3] / minsrc / ricoGridCommon.js
index 655e62e..eaba5e7 100644 (file)
@@ -793,11 +793,8 @@ Rico.TableColumnBase.prototype = {
  */
   getDisplayName: function(el) {
     var anchors=el.getElementsByTagName("A");
-    //Check the existance of A tags
-    if (anchors.length > 0)
-      return anchors[0].innerHTML;
-    else
-      return Rico.stripTags(el.innerHTML);
+    var s=anchors.length > 0 ? anchors[0].innerHTML : Rico.stripTags(el.innerHTML);
+    return Rico.trim(s);
   },
 
   _clear: function(gridCell) {