Mercurial > moin > 1.9
view wiki/htdocs/applets/FCKeditor/editor/css/behaviors/showtableborders.htc @ 0:77665d8e2254
tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
(automatically generated log message)
imported from: moin--main--1.5--base-0
author | Thomas Waldmann <tw-public@gmx.de> |
---|---|
date | Thu, 22 Sep 2005 15:09:50 +0000 |
parents | |
children | 645324d706e2 07862b0663fd |
line wrap: on
line source
<public:component lightweight="true"> <public:attach event="oncontentready" onevent="ShowBorders()" /> <public:attach event="onpropertychange" onevent="OnPropertyChange()" /> <script language="javascript"> var oClassRegex = /\s*FCK__ShowTableBorders/ ; var FCKConfig = window.parent.FCKConfig ; function ShowBorders() { if ( this.border == 0 ) { if ( !oClassRegex.test( this.className ) ) this.className += ' FCK__ShowTableBorders' ; } else { if ( oClassRegex.test( this.className ) ) { this.className = this.className.replace( oClassRegex, '' ) ; if ( this.className.length == 0 ) this.removeAttribute( 'className', 0 ) ; } } } function OnPropertyChange() { if ( event.propertyName == 'border' || event.propertyName == 'className' ) ShowBorders() ; } </script> </public:component>