Changeset 876 for trunk


Ignore:
Timestamp:
08/07/07 22:16:29 (12 years ago)
Author:
ray
Message:

#1053 ListType? plugin doesn't work in panel config with multiple editors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ListType/list-type.js

    r856 r876  
    5555    divglobal.style.height = '90px'; 
    5656    var div = document.createElement( 'div' ); 
    57     div.id = 'LTdivUL'; 
     57    this.divUL = div; 
    5858    div.style.display = 'none'; 
    5959    for ( var i=0; i<elts_ul.length; i++ ) 
     
    6363    divglobal.appendChild( div ); 
    6464    var div = document.createElement( 'div' ); 
    65     div.id = 'LTdivOL'; 
     65    this.divOL = div; 
    6666    div.style.display = 'none'; 
    6767    for ( var i=0; i<elts_ol.length; i++ ) 
     
    164164ListType.prototype.showActive = function( parent ) 
    165165{ 
    166   var activeDiv = document.getElementById( ( parent.tagName.toLowerCase() == 'ul' )? 'LTdivUL':'LTdivOL' ); 
    167   document.getElementById( 'LTdivUL' ).style.display = 'none'; 
    168   document.getElementById( 'LTdivOL' ).style.display = 'none'; 
     166  var activeDiv = ( parent.tagName.toLowerCase() == 'ul' ) ? this.divUL : this.divOL; 
     167  this.divUL.style.display = 'none'; 
     168  this.divOL.style.display = 'none'; 
    169169  activeDiv.style.display = 'block'; 
    170170  var defaultType = parent.style.listStyleType; 
Note: See TracChangeset for help on using the changeset viewer.