X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fforms%2Fdialogs%2Fradio.js;h=5b154aaadf4383f481ea8d564705ed70a915497e;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=105710f8eaac0fe3d3cdec7cecf960bd517c6faa;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/plugins/forms/dialogs/radio.js b/_source/plugins/forms/dialogs/radio.js index 105710f..5b154aa 100644 --- a/_source/plugins/forms/dialogs/radio.js +++ b/_source/plugins/forms/dialogs/radio.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'radio', function( editor ) @@ -51,7 +51,7 @@ CKEDITOR.dialog.add( 'radio', function( editor ) setup : function( element ) { this.setValue( - element.getAttribute( '_cke_saved_name' ) || + element.data( 'cke-saved-name' ) || element.getAttribute( 'name' ) || '' ); }, @@ -60,10 +60,10 @@ CKEDITOR.dialog.add( 'radio', function( editor ) var element = data.element; if ( this.getValue() ) - element.setAttribute( '_cke_saved_name', this.getValue() ); + element.data( 'cke-saved-name', this.getValue() ); else { - element.removeAttribute( '_cke_saved_name' ); + element.data( 'cke-saved-name', false ); element.removeAttribute( 'name' ); } } @@ -103,7 +103,7 @@ CKEDITOR.dialog.add( 'radio', function( editor ) { var element = data.element; - if ( !CKEDITOR.env.ie ) + if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera ) ) { if ( this.getValue() ) element.setAttribute( 'checked', 'checked' );