9 | | function hideBorderZeroOnPrint( classname ){ |
10 | | var node = document.getElementsByTagName( 'body' )[0];//inline editor |
11 | | var elements = node.getElementsByTagName( 'table' ); |
12 | | for( var i=0, len=elements.length ; i<len ; i++ ){ |
13 | | elements[i].setAttribute('class', elements[i].getAttribute('class').replace(classname,'')); |
14 | | } |
15 | | } |
| 9 | function hideBorderZeroOnPrint( classname ){ |
| 10 | var node = document.getElementsByTagName( 'body' )[0];//inline editor |
| 11 | var elements = node.getElementsByTagName( 'table' ); |
| 12 | for( var i=0, len=elements.length ; i<len ; i++ ){ |
| 13 | elements[i].setAttribute('class', elements[i].getAttribute('class').replace(classname,'')); |
| 14 | } |
| 15 | } |
| 16 | function showBorderZeroAfterPrint( classname ){ |
| 17 | var node = document.getElementsByTagName( 'body' )[0];//inline editor |
| 18 | var elements = node.getElementsByTagName( 'table' ); |
| 19 | for( var i=0, len=elements.length ; i<len ; i++ ){ |
| 20 | var bor = elements[i].getAttribute('border'); |
| 21 | if(bor && bor == 0) |
| 22 | elements[i].setAttribute('class', elements[i].getAttribute('class').concat(classname)); |
| 23 | } |
| 24 | } |