Ticket #4583: 4583.patch
File 4583.patch, 1.5 KB (added by , 13 years ago) |
---|
-
_source/plugins/link/dialogs/link.js
2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ 5 6 5 CKEDITOR.dialog.add( 'link', function( editor ) 7 6 { 8 7 // Handles the event when the "Target" selection box is changed. … … 17 16 return; 18 17 19 18 popupFeatures = popupFeatures.getElement(); 20 21 if ( value == 'popup' ) 19 20 popupFeatures.hide(); 21 targetName.setValue( '' ); 22 23 switch ( value ) 22 24 { 23 popupFeatures.show(); 24 targetName.setLabel( editor.lang.link.targetPopupName ); 25 case 'frame' : 26 targetName.setLabel( editor.lang.link.targetFrameName ); 27 targetName.getElement().show(); 28 break; 29 case 'popup' : 30 popupFeatures.show(); 31 targetName.setLabel( editor.lang.link.targetPopupName ); 32 targetName.getElement().show(); 33 break; 34 default : 35 targetName.setValue( value ); 36 targetName.getElement().hide(); 37 break; 38 25 39 } 26 else27 {28 popupFeatures.hide();29 targetName.setLabel( editor.lang.link.targetFrameName );30 this.getDialog().setValueOf( 'target', 'linkTargetName', value.charAt( 0 ) == '_' ? value : '' );31 }32 40 }; 33 41 34 42 // Handles the event when the "Type" selection box is changed.