Changeset 5116


Ignore:
Timestamp:
Oct 5, 2009, 9:19:47 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1347: Enable Appearance feature 'Display long text' in Experiment - Properties tab tables

This fixes the problem with the 'Used values' column.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/taglib/Body.java

    r4889 r5116  
    333333      if ("click".equals(longTexts))
    334334      {
    335         sb.append("\t\tnew TextOverflowChecker('div', 'constrained').checkAll();\n");
     335        sb.append("\t\twindow.textOverflowChecker = new TextOverflowChecker('div', 'constrained');\n");
     336        sb.append("\t\twindow.textOverflowChecker.checkAll();\n");
    336337      }
    337338      sb.append("</script>\n");
  • trunk/www/include/scripts/main.js

    r5091 r5116  
    27652765function TextOverflowChecker(tagName, className)
    27662766{
    2767   this.tags = Main.getElementsByTagAndClassName(tagName, className);
    27682767  this.nextTag = 0;
    27692768 
    27702769  this.checkAll = function()
    27712770  {
     2771    this.tags = Main.getElementsByTagAndClassName(tagName, className);
    27722772    if (this.tags.length > 300)
    27732773    {
  • trunk/www/views/experiments/view_experiment.jsp

    r5115 r5116  
    202202      var div = document.getElementById('usedvalues.'+annotationTypeId);
    203203      div.innerHTML = values;
     204      if (values && values.length > 50)
     205      {
     206        Main.addClass(div, 'constrained unchecked autoshow');
     207        if (window.textOverflowChecker)
     208        {
     209          window.textOverflowChecker.checkTag(div);
     210        }
     211      }
    204212    }
    205213    function showStatus(annotationTypeId, numTotal, numInherited)
Note: See TracChangeset for help on using the changeset viewer.