if ( elementDefinition[ 'default' ] )\r
attributes.checked = 'checked';\r
\r
- if (typeof myDefinition.controlStyle != 'undefined')\r
+ if ( typeof myDefinition.controlStyle != 'undefined' )\r
myDefinition.style = myDefinition.controlStyle;\r
\r
_.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes );\r
cleanInnerDefinition( inputDefinition );\r
cleanInnerDefinition( labelDefinition );\r
\r
- if (typeof inputDefinition.controlStyle != 'undefined')\r
+ if ( typeof inputDefinition.controlStyle != 'undefined' )\r
inputDefinition.style = inputDefinition.controlStyle;\r
\r
children.push( new CKEDITOR.ui.dialog.uiElement( dialog, inputDefinition, inputHtml, 'input', null, inputAttributes ) );\r
CKEDITOR.tools.htmlEncode( item[0] ) );\r
}\r
\r
- if (typeof myDefinition.controlStyle != 'undefined')\r
+ if ( typeof myDefinition.controlStyle != 'undefined' )\r
myDefinition.style = myDefinition.controlStyle;\r
\r
_.select = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'select', null, attributes, innerHTML.join( '' ) );\r
{\r
this._.disabled = false;\r
var element = this.getElement();\r
- element && element.removeClass( 'disabled' );\r
+ element && element.removeClass( 'cke_disabled' );\r
},\r
\r
/**\r
disable : function()\r
{\r
this._.disabled = true;\r
- this.getElement().addClass( 'disabled' );\r
+ this.getElement().addClass( 'cke_disabled' );\r
},\r
\r
isVisible : function()\r
*/\r
reset : function()\r
{\r
- var frameElement = CKEDITOR.document.getById( this._.frameId ),\r
+ var _ = this._,\r
+ frameElement = CKEDITOR.document.getById( _.frameId ),\r
frameDocument = frameElement.getFrameDocument(),\r
- elementDefinition = this._.definition,\r
- buttons = this._.buttons,\r
+ elementDefinition = _.definition,\r
+ buttons = _.buttons,\r
callNumber = this.formLoadedNumber,\r
unloadNumber = this.formUnloadNumber,\r
- langDir = this._.dialog._.editor.lang.dir,\r
- langCode = this._.dialog._.editor.langCode;\r
+ langDir = _.dialog._.editor.lang.dir,\r
+ langCode = _.dialog._.editor.langCode;\r
\r
// The callback function for the iframe, but we must call tools.addFunction only once\r
// so we store the function number in this.formLoadedNumber\r
- if (!callNumber)\r
+ if ( !callNumber )\r
{\r
callNumber = this.formLoadedNumber = CKEDITOR.tools.addFunction(\r
function()\r