Ignore:
Timestamp:
08/25/06 13:45:41 (14 years ago)
Author:
mokhet
Message:
  • add prototype.removeEvent and prototype.notifierRemove
  • apply color picker IE fix and saved colors from ticket #85
  • bring back anonymous function in events (when available) for a better diff with trunk
  • disable patch from ticket #827 until a proper fix for IE is found
  • fix undeclared variable used in popup.js
  • fix undefined parameter used in listType plugin
File:
1 edited

Legend:

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

    r430 r558  
    3737  { 
    3838    editor._ListType = editor.addPanel( 'right' ); 
    39     HTMLArea.freeLater( editor, '_ListType' ); 
     39    editor.freeLater( editor, '_ListType' ); 
    4040    HTMLArea.addClass( editor._ListType, 'ListType' ); 
    4141    // hurm, ok it's pretty to use the background color for the whole panel, 
     
    4646      function(e,args) 
    4747      { 
    48         if ( args.mode == 'text' ) editor.hidePanel( editor._ListType ); 
     48        if ( args.mode == 'text' ) { editor.hidePanel( editor._ListType ); } 
    4949      } 
    5050    ); 
     
    130130ListType.prototype.onUpdateToolbar = function() 
    131131{ 
    132   if ( this.editor.config.ListType.mode == 'toolbar' ) return ; 
     132  if ( this.editor.config.ListType.mode == 'toolbar' ) { return ; } 
    133133  var parent = this.editor.getParentElement(); 
    134   while ( parent && !/^[o|u]l$/i.test( parent.tagName ) ) 
     134  while ( parent && parent.tagName && !/^[o|u]l$/i.test( parent.tagName ) ) 
     135  { 
    135136    parent = parent.parentNode; 
    136   if (parent && /^[o|u]l$/i.test( parent.tagName ) ) 
     137  } 
     138  if (parent && parent.tagName && /^[o|u]l$/i.test( parent.tagName ) ) 
    137139  { 
    138140    this.showPanel( parent ); 
    139141  } 
    140   else if (this.editor._ListType.style.display != 'none') 
     142  else if ( this.editor._ListType.style.display != 'none' ) 
    141143  { 
    142144    this.editor.hidePanel( this.editor._ListType ); 
Note: See TracChangeset for help on using the changeset viewer.