Index: trunk/extensions/CentralNotice/centralnotice.js |
— | — | @@ -68,9 +68,13 @@ |
69 | 69 | switch( buttonType ) { |
70 | 70 | case 'close': // Insert close button |
71 | 71 | if ( $( '#fundraising' ).is( ':checked' ) ) { |
72 | | - var buttonValue = '<a href="#" onclick="hideBanner(\'fundraising\');return false;"><img border="0" src="' + mw.config.get( 'stylepath' ) + '/common/images/closewindow.png" alt="Close" /></a>'; |
| 72 | + var buttonValue = '<a href="#" onclick="hideBanner(\'fundraising\');return false;">' |
| 73 | + + '<img border="0" src="' + mw.config.get( 'stylepath' ) |
| 74 | + + '/common/images/closewindow.png" alt="Close" /></a>'; |
73 | 75 | } else { |
74 | | - var buttonValue = '<a href="#" onclick="hideBanner();return false;"><img border="0" src="' + mw.config.get( 'stylepath' ) + '/common/images/closewindow.png" alt="Close" /></a>'; |
| 76 | + var buttonValue = '<a href="#" onclick="hideBanner();return false;">' |
| 77 | + + '<img border="0" src="' + mw.config.get( 'stylepath' ) |
| 78 | + + '/common/images/closewindow.png" alt="Close" /></a>'; |
75 | 79 | } |
76 | 80 | break; |
77 | 81 | } |
— | — | @@ -84,8 +88,8 @@ |
85 | 89 | var startPos = bannerField.selectionStart; |
86 | 90 | var endPos = bannerField.selectionEnd; |
87 | 91 | bannerField.value = bannerField.value.substring(0, startPos) |
88 | | - + buttonValue |
89 | | - + bannerField.value.substring(endPos, bannerField.value.length); |
| 92 | + + buttonValue |
| 93 | + + bannerField.value.substring(endPos, bannerField.value.length); |
90 | 94 | } else { |
91 | 95 | bannerField.value += buttonValue; |
92 | 96 | } |