[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?xml version="1.0" encoding="utf-8" ?> 2 <bindings xmlns="http://www.mozilla.org/xbl"> 3 <binding id="showtableborders"> 4 <implementation> 5 <constructor> 6 this.CheckShowBorders() ; 7 </constructor> 8 <method name="CheckShowBorders"> 9 <body> 10 var oClassRegex = /\s*FCK__ShowTableBorders\s*/ ; 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 this.className = this.className.replace( oClassRegex, '' ) ; 21 } 22 </body> 23 </method> 24 </implementation> 25 <handlers> 26 <handler event="DOMAttrModified"> 27 this.CheckShowBorders() ; 28 </handler> 29 </handlers> 30 </binding> 31 <binding id="anchors"> 32 <implementation> 33 <constructor> 34 <![CDATA[ 35 this.IsAnchor = ( this.name != null && this.name.length > 0 && ( this.getAttribute('href') == null || this.getAttribute('href').length == 0 ) ) ; 36 this.ShowIcon() ; 37 ]]> 38 </constructor> 39 <method name="ShowIcon"> 40 <body> 41 if ( this.IsAnchor ) 42 { 43 this.style.height = '1px' ; 44 this.style.paddingLeft = '16px' ; 45 this.style.backgroundImage = 'url(behaviors/anchor.gif)' ; 46 this.style.backgroundRepeat = 'no-repeat' ; 47 this.style.cursor = 'pointer' ; 48 } 49 </body> 50 </method> 51 </implementation> 52 <handlers> 53 <handler event="click"> 54 if ( this.IsAnchor ) 55 alert( this.IsAnchor ) ; 56 </handler> 57 </handlers> 58 </binding> 59 </bindings>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |