1
<public:component lightweight="true">
3
<public:attach event="oncontentready" onevent="ShowBorders()" />
4
<public:attach event="onpropertychange" onevent="OnPropertyChange()" />
6
<script language="javascript">
8
var oClassRegex = /\s*FCK__ShowTableBorders/ ;
10
function ShowBorders()
12
if ( this.border == 0 )
14
if ( !oClassRegex.test( this.className ) )
15
this.className += ' FCK__ShowTableBorders' ;
19
if ( oClassRegex.test( this.className ) )
21
this.className = this.className.replace( oClassRegex, '' ) ;
22
if ( this.className.length == 0 )
23
this.removeAttribute( 'className', 0 ) ;
28
function OnPropertyChange()
30
if ( event.propertyName == 'border' || event.propertyName == 'className' )
31
ShowBorders.call(this) ;