Bug #18259 ยป 20080220_IE_checkboxes.diff

Administrator Admin, 2008-02-20 18:14

View differences:

typo3/template.php (working copy)
1830 1830
	function setModuleTemplate($filename) {
1831 1831
			// Load Prototype lib for IE event
1832 1832
		$this->loadJavascriptLib('contrib/prototype/prototype.js');
1833
		$this->loadJavascriptLib('js/iecompatibility.js');
1833 1834
		$this->moduleTemplate = $this->getHtmlTemplate($filename);
1834 1835
	}
1835 1836
	
typo3/sysext/t3skin/stylesheets/stylesheet_post.css (working copy)
89 89
.checkbox,
90 90
.checkbox:hover,
91 91
input[type="checkbox"] {
92
	vertical-align: middle;
92 93
	border: none;
93 94
	background: none;
94 95
}
95 96

  
97
.checkbox,
98
.checkbox:hover {
99
	width: 13px;
100
	height: 13px;
101
	overflow: hidden;
102
}
96 103

  
104
label {;
105
	vertical-align: middle;
106
}
97 107

  
98 108
/* PAGE HEADERS: */
99 109

  
typo3/js/iecompatibility.js (revision 0)
1
/***************************************************************
2
*  Copyright notice
3
*
4
*  (c) 2008 Jeff Segars <jeff@webempoweredchurch.org>
5
*  All rights reserved
6
*
7
*  This script is part of the TYPO3 project. The TYPO3 project is
8
*  free software; you can redistribute it and/or modify
9
*  it under the terms of the GNU General Public License as published by
10
*  the Free Software Foundation; either version 2 of the License, or
11
*  (at your option) any later version.
12
*
13
*  The GNU General Public License can be found at
14
*  http://www.gnu.org/copyleft/gpl.html.
15
*  A copy is found in the textfile GPL.txt and important notices to the license
16
*  from the author is found in LICENSE.txt distributed with these scripts.
17
*
18
*
19
*  This script is distributed in the hope that it will be useful,
20
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
*  GNU General Public License for more details.
23
*
24
*  This copyright notice MUST APPEAR in all copies of the script!
25
***************************************************************/
26

  
27

  
28
var IECompatibility = Class.create({
29

  
30
	/**
31
	 * initialize the compatibility class
32
	 */
33
	initialize: function() {
34
		Event.observe(document, 'dom:loaded', function() {
35
			$$('input[type="checkbox"]').invoke('addClassName', 'checkbox');
36
		}.bind(this));
37
	}
38
});
39

  
40
if (Prototype.Browser.IE) {
41
	var TYPO3IECompatibilty = new IECompatibility();
42
}
    (1-1/1)