fixed errors in visual console on simple value 2

This commit is contained in:
Daniel Maya 2017-08-11 11:48:25 +02:00
parent 9760a7b7fe
commit 5973ec7545

View File

@ -405,12 +405,12 @@ function update_button_palette_callback() {
break; break;
case 'simple_value': case 'simple_value':
//checkpoint //checkpoint
if(($('#text-label_ifr').contents().find('#tinymce p').html() == '_VALUE_' || // if(($('#text-label_ifr').contents().find('#tinymce p').html() == '_VALUE_' ||
$('#text-label_ifr').contents().find('#tinymce').html() == '_VALUE_') // $('#text-label_ifr').contents().find('#tinymce').html() == '_VALUE_')
&& $('#data_image_check').html() != 'On'){ // && $('#data_image_check').html() != 'On'){
alert('_VALUE_ exactly value is only enable for data image. Please change label text or select a data image module.'); // alert('_VALUE_ exactly value is only enable for data image. Please change label text or select a data image module.');
return; // return;
} // }
$("#" + idItem).html(values['label']); $("#" + idItem).html(values['label']);
if( (values['label'].replace( /<.*?>/g, '' ) != '_VALUE_') if( (values['label'].replace( /<.*?>/g, '' ) != '_VALUE_')
&& (values['label'].replace( /<.*?>/g, '' ) != '(_VALUE_)') ){ && (values['label'].replace( /<.*?>/g, '' ) != '(_VALUE_)') ){