X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fdialogui%2Fplugin.js;h=963c80c45d6030d1cd7345da7867c864edc2889b;hp=826dc578673e715f8ecdca64cb4c342f655af254;hb=2f22c0c38f17e75be5541089076885442aaa2377;hpb=e73319a12b56100b29ef456fd74114fe5519e01c
diff --git a/_source/plugins/dialogui/plugin.js b/_source/plugins/dialogui/plugin.js
index 826dc57..963c80c 100644
--- a/_source/plugins/dialogui/plugin.js
+++ b/_source/plugins/dialogui/plugin.js
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
@@ -224,7 +224,7 @@ CKEDITOR.plugins.add( 'dialogui' );
initPrivateObject.call( this, elementDefinition );
var domId = this._.inputId = CKEDITOR.tools.getNextId() + '_textInput',
- attributes = { 'class' : 'cke_dialog_ui_input_' + elementDefinition.type, id : domId, type : 'text' },
+ attributes = { 'class' : 'cke_dialog_ui_input_' + elementDefinition.type, id : domId, type : elementDefinition.type },
i;
// Set the validator, if any.
@@ -855,7 +855,9 @@ CKEDITOR.plugins.add( 'dialogui' );
var innerHTML = function()
{
var html = [];
- legendLabel && html.push( '' );
+ legendLabel && html.push( '' );
for ( var i = 0; i < childHtmlList.length; i++ )
html.push( childHtmlList[ i ] );
return html.join( '' );
@@ -969,7 +971,13 @@ CKEDITOR.plugins.add( 'dialogui' );
/** @ignore */
onClick : function( dialog, func )
{
- this.on( 'click', func );
+ this.on( 'click', function()
+ {
+ // Some browsers (Chrome, IE8, IE7 compat mode) don't move
+ // focus to clicked button. Force this.
+ this.getElement().focus();
+ func.apply( this, arguments );
+ });
}
}, true ),