Subversion Repositories Applications.papyrus

Rev

Rev 521 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 521 Rev 875
Line 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for internet
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5
 * 
5
 * 
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * Licensed under the terms of the GNU Lesser General Public License:
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
8
 * 
8
 * 
9
 * For further information visit:
9
 * For further information visit:
Line 38... Line 38...
38
	oEditor.FCKLanguageManager.TranslatePage(document) ;
38
	oEditor.FCKLanguageManager.TranslatePage(document) ;
Line 39... Line 39...
39
 
39
 
40
	if ( oActiveEl && oActiveEl.tagName.toUpperCase() == 'INPUT' && oActiveEl.type == 'radio' )
40
	if ( oActiveEl && oActiveEl.tagName.toUpperCase() == 'INPUT' && oActiveEl.type == 'radio' )
41
	{
41
	{
42
		GetE('txtName').value		= oActiveEl.name ;
42
		GetE('txtName').value		= oActiveEl.name ;
43
		GetE('txtValue').value		= oActiveEl.value ;
43
		GetE('txtValue').value		= oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ;
44
		GetE('txtSelected').checked	= oActiveEl.checked ;
44
		GetE('txtSelected').checked	= oActiveEl.checked ;
45
	}
45
	}
46
	else
46
	else
Line 56... Line 56...
56
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
56
		oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
57
		oActiveEl.type = 'radio' ;
57
		oActiveEl.type = 'radio' ;
58
		oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
58
		oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
59
	}
59
	}
Line -... Line 60...
-
 
60
 
60
 
61
	if ( GetE('txtName').value.length > 0 )
-
 
62
		oActiveEl.name = GetE('txtName').value ;
-
 
63
		
-
 
64
	if ( oEditor.FCKBrowserInfo.IsIE )
-
 
65
		oActiveEl.value = GetE('txtValue').value ;
61
	oActiveEl.name = GetE('txtName').value ;
66
	else
Line 62... Line 67...
62
	SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
67
		SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
63
 
-
 
64
	if ( GetE('txtSelected').checked )
68
 
65
	{
69
	var bIsChecked = GetE('txtSelected').checked ;
66
		SetAttribute( oActiveEl, 'checked', 'checked' ) ;
-
 
Line 67... Line 70...
67
		oActiveEl.checked = GetE('txtSelected').checked ;
70
	SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ;	// For Firefox
68
	}
71
	oActiveEl.checked = bIsChecked ;
Line 69... Line 72...
69
 
72