Fixed problems with html-labels and html editor in visual console. Tiquets: #3918 and #3985

(cherry picked from commit ec08ccd7c1)
This commit is contained in:
m-lopez-f 2016-08-16 14:04:01 +02:00
parent b61ccf5f3b
commit 127eebc0ed
1 changed files with 7 additions and 7 deletions

View File

@ -1068,13 +1068,13 @@ function hiddenFields(item) {
enterprise_hiddenFields(item); enterprise_hiddenFields(item);
} }
var code_control = tinyMCE.activeEditor.controlManager.controls['text-label_code']; //~ var code_control = tinyMCE.activeEditor.controlManager.controls['text-label_code'];
if (item == 'label') { //~ if (item == 'label') {
code_control.setDisabled(false); //~ code_control.setDisabled(false);
} //~ }
else { //~ else {
code_control.setDisabled(true); //~ code_control.setDisabled(true);
} //~ }
} }
function cleanFields(item) { function cleanFields(item) {