Arthur Bogaart pushed to branch bugfix/CMS-10023 at cms-community / hippo-cms
Commits: 0074539b by Arthur Bogaart at 2016-07-14T14:55:53+02:00 CMS-10023 Simplify disabled/off switch - - - - - 1 changed file: - richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js Changes: ===================================== richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js ===================================== --- a/richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js +++ b/richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js @@ -262,17 +262,17 @@ var callbackParameters = {}, command; + if (imgElement !== null) { + callbackParameters = getElementParameters(imgElement, IMAGE_ATTRIBUTE_PARAMETER_MAP); + } + command = editor.getCommand('pickImage'); - command.toggleState(); + command.setState(CKEDITOR.TRISTATE_DISABLED); setTimeout(function () { - command.toggleState(); + command.setState(CKEDITOR.TRISTATE_OFF); }, PREVENT_DBLCLICK_DELAY); - if (imgElement !== null) { - callbackParameters = getElementParameters(imgElement, IMAGE_ATTRIBUTE_PARAMETER_MAP); - } - Wicket.Ajax.post({ u: callbackUrl, ep: callbackParameters View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/commit/0074539b1ca02182667c6084abc9872084b6622c
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn