aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/dialogui/plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/dialogui/plugin.js')
-rw-r--r--sources/plugins/dialogui/plugin.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/sources/plugins/dialogui/plugin.js b/sources/plugins/dialogui/plugin.js
index cf91407..ab36791 100644
--- a/sources/plugins/dialogui/plugin.js
+++ b/sources/plugins/dialogui/plugin.js
@@ -72,7 +72,7 @@ CKEDITOR.plugins.add( 'dialogui', {
72 if ( !this._.domOnChangeRegistered ) { 72 if ( !this._.domOnChangeRegistered ) {
73 dialog.on( 'load', function() { 73 dialog.on( 'load', function() {
74 this.getInputElement().on( 'change', function() { 74 this.getInputElement().on( 'change', function() {
75 // Make sure 'onchange' doesn't get fired after dialog closed. (#5719) 75 // Make sure 'onchange' doesn't get fired after dialog closed. (http://dev.ckeditor.com/ticket/5719)
76 if ( !dialog.parts.dialog.isVisible() ) 76 if ( !dialog.parts.dialog.isVisible() )
77 return; 77 return;
78 78
@@ -240,7 +240,7 @@ CKEDITOR.plugins.add( 'dialogui', {
240 keyPressedOnMe = true; 240 keyPressedOnMe = true;
241 } ); 241 } );
242 242
243 // Lower the priority this 'keyup' since 'ok' will close the dialog.(#3749) 243 // Lower the priority this 'keyup' since 'ok' will close the dialog.(http://dev.ckeditor.com/ticket/3749)
244 me.getInputElement().on( 'keyup', function( evt ) { 244 me.getInputElement().on( 'keyup', function( evt ) {
245 if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) { 245 if ( evt.data.getKeystroke() == 13 && keyPressedOnMe ) {
246 dialog.getButton( 'ok' ) && setTimeout( function() { 246 dialog.getButton( 'ok' ) && setTimeout( function() {
@@ -472,7 +472,7 @@ CKEDITOR.plugins.add( 'dialogui', {
472 if ( typeof inputDefinition.inputStyle != 'undefined' ) 472 if ( typeof inputDefinition.inputStyle != 'undefined' )
473 inputDefinition.style = inputDefinition.inputStyle; 473 inputDefinition.style = inputDefinition.inputStyle;
474 474
475 // Make inputs of radio type focusable (#10866). 475 // Make inputs of radio type focusable (http://dev.ckeditor.com/ticket/10866).
476 inputDefinition.keyboardFocusable = true; 476 inputDefinition.keyboardFocusable = true;
477 477
478 children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) ); 478 children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) );
@@ -537,7 +537,7 @@ CKEDITOR.plugins.add( 'dialogui', {
537 ( function() { 537 ( function() {
538 element.on( 'click', function( evt ) { 538 element.on( 'click', function( evt ) {
539 me.click(); 539 me.click();
540 // #9958 540 // http://dev.ckeditor.com/ticket/9958
541 evt.data.preventDefault(); 541 evt.data.preventDefault();
542 } ); 542 } );
543 543
@@ -686,7 +686,7 @@ CKEDITOR.plugins.add( 'dialogui', {
686 ' src="javascript:void(' 686 ' src="javascript:void('
687 ]; 687 ];
688 688
689 // Support for custom document.domain on IE. (#10165) 689 // Support for custom document.domain on IE. (http://dev.ckeditor.com/ticket/10165)
690 html.push( CKEDITOR.env.ie ? 690 html.push( CKEDITOR.env.ie ?
691 '(function(){' + encodeURIComponent( 691 '(function(){' + encodeURIComponent(
692 'document.open();' + 692 'document.open();' +
@@ -1423,7 +1423,7 @@ CKEDITOR.plugins.add( 'dialogui', {
1423 '<label id="', _.labelId, '" for="', inputId, '" style="display:none">', 1423 '<label id="', _.labelId, '" for="', inputId, '" style="display:none">',
1424 CKEDITOR.tools.htmlEncode( elementDefinition.label ), 1424 CKEDITOR.tools.htmlEncode( elementDefinition.label ),
1425 '</label>', 1425 '</label>',
1426 // Set width to make sure that input is not clipped by the iframe (#11253). 1426 // Set width to make sure that input is not clipped by the iframe (http://dev.ckeditor.com/ticket/11253).
1427 '<input style="width:100%" id="', inputId, '" aria-labelledby="', _.labelId, '" type="file" name="', 1427 '<input style="width:100%" id="', inputId, '" aria-labelledby="', _.labelId, '" type="file" name="',
1428 CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ), 1428 CKEDITOR.tools.htmlEncode( elementDefinition.id || 'cke_upload' ),
1429 '" size="', 1429 '" size="',
@@ -1446,7 +1446,7 @@ CKEDITOR.plugins.add( 'dialogui', {
1446 buttons[ i ].enable(); 1446 buttons[ i ].enable();
1447 } 1447 }
1448 1448
1449 // #3465: Wait for the browser to finish rendering the dialog first. 1449 // http://dev.ckeditor.com/ticket/3465: Wait for the browser to finish rendering the dialog first.
1450 if ( CKEDITOR.env.gecko ) 1450 if ( CKEDITOR.env.gecko )
1451 setTimeout( generateFormField, 500 ); 1451 setTimeout( generateFormField, 500 );
1452 else 1452 else