Changeset 853

Show
Ignore:
Timestamp:
05/01/08 22:25:51 (3 months ago)
Author:
jlong
Message:

prototype: clarifying javascript

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/prototype/admin/javascripts/sitemap.js

    r852 r853  
    140140  toggleBranch: function(row, img) { 
    141141    if (!this.updating) { 
    142       var method = (this.isExpanded(row) ? 'hide' : 'show') + 'Branch'; 
    143       this[method](row, img); 
     142      if (this.isExpanded(row)) { 
     143        this.hideBranch(row, img); 
     144      } else { 
     145        this.showBranch(row, img); 
     146      } 
    144147    } 
    145148  }