Revision 389,
822 bytes
checked in by niltonneto, 16 years ago
(diff) |
Ver Tickets no Trac #286 e #287.
Inclusão de template de assinatura padrão.
Assinatura também disponível em formato de texto rico.
Inclusão da biblioteca FCKEditor.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | <public:component lightweight="true">
|
---|
2 |
|
---|
3 | <public:attach event="oncontentready" onevent="ShowBorders()" />
|
---|
4 | <public:attach event="onpropertychange" onevent="OnPropertyChange()" />
|
---|
5 |
|
---|
6 | <script language="javascript">
|
---|
7 |
|
---|
8 | var oClassRegex = /\s*FCK__ShowTableBorders/ ;
|
---|
9 |
|
---|
10 | function ShowBorders()
|
---|
11 | {
|
---|
12 | if ( this.border == 0 )
|
---|
13 | {
|
---|
14 | if ( !oClassRegex.test( this.className ) )
|
---|
15 | this.className += ' FCK__ShowTableBorders' ;
|
---|
16 | }
|
---|
17 | else
|
---|
18 | {
|
---|
19 | if ( oClassRegex.test( this.className ) )
|
---|
20 | {
|
---|
21 | this.className = this.className.replace( oClassRegex, '' ) ;
|
---|
22 | if ( this.className.length == 0 )
|
---|
23 | this.removeAttribute( 'className', 0 ) ;
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | function OnPropertyChange()
|
---|
29 | {
|
---|
30 | if ( event.propertyName == 'border' || event.propertyName == 'className' )
|
---|
31 | ShowBorders.call(this) ;
|
---|
32 | }
|
---|
33 |
|
---|
34 | </script>
|
---|
35 |
|
---|
36 | </public:component>
|
---|
Note: See
TracBrowser
for help on using the repository browser.