X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=plugins%2Fforms%2Fdialogs%2Fradio.js;fp=plugins%2Fforms%2Fdialogs%2Fradio.js;h=fd718f282a63ee16be6bffc2178e467a42891ae7;hp=1af693e17c16fe82b5021694fa8dd1acf2a82393;hb=a0df3d0ab0c5252b5e2e0fd274705ede834c2276;hpb=dc5b273b4cbd7e7d0167499e7649867ba2a5b408 diff --git a/plugins/forms/dialogs/radio.js b/plugins/forms/dialogs/radio.js index 1af693e..fd718f2 100644 --- a/plugins/forms/dialogs/radio.js +++ b/plugins/forms/dialogs/radio.js @@ -1,5 +1,5 @@ /* - Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. + Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("radio",function(d){return{title:d.lang.forms.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){delete this.radioButton;var a=this.getParentEditor().getSelection().getSelectedElement();a&&("input"==a.getName()&&"radio"==a.getAttribute("type"))&&(this.radioButton=a,this.setupContent(a))},onOk:function(){var a,b=this.radioButton,c=!b;c&&(a=this.getParentEditor(),b=a.document.createElement("input"),b.setAttribute("type","radio"));c&&a.insertElement(b);this.commitContent({element:b})},