summaryrefslogtreecommitdiff
path: root/httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html
diff options
context:
space:
mode:
authormark <mark>2010-03-16 07:49:38 +0000
committermark <mark>2010-03-16 07:49:38 +0000
commit7a7bcda9d75c951df9c911ce60d5b0551765daf2 (patch)
tree6d3688ce272ee837653c00eda64c5691a4932e1f /httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html
parentc86fe9ea75d23d3d0c3536b709ac1e086f15a5de (diff)
FCKeditor 2.6.6
Diffstat (limited to 'httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html')
-rw-r--r--httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html21
1 files changed, 9 insertions, 12 deletions
diff --git a/httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html b/httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html
index f239ad3..556890f 100644
--- a/httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html
+++ b/httemplate/elements/fckeditor/editor/dialog/fck_radiobutton.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
- * Copyright (C) 2003-2007 Frederico Caldeira Knabben
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
@@ -29,12 +29,13 @@
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript">
-var oEditor = window.parent.InnerDialogLoaded() ;
+var dialog = window.parent ;
+var oEditor = dialog.InnerDialogLoaded() ;
// Gets the document DOM
var oDOM = oEditor.FCK.EditorDocument ;
-var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
+var oActiveEl = dialog.Selection.GetSelectedElement() ;
window.onload = function()
{
@@ -50,20 +51,16 @@ window.onload = function()
else
oActiveEl = null ;
- window.parent.SetOkButton( true ) ;
+ dialog.SetOkButton( true ) ;
+ dialog.SetAutoSize( true ) ;
+ SelectField( 'txtName' ) ;
}
function Ok()
{
- if ( !oActiveEl )
- {
- oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;
- oActiveEl.type = 'radio' ;
- oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
- }
+ oEditor.FCKUndo.SaveUndoStep() ;
- if ( GetE('txtName').value.length > 0 )
- oActiveEl.name = GetE('txtName').value ;
+ oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'INPUT', {name: GetE('txtName').value, type: 'radio' } ) ;
if ( oEditor.FCKBrowserInfo.IsIE )
oActiveEl.value = GetE('txtValue').value ;