|
|
|
|
@ -471,7 +471,7 @@
|
|
|
|
|
editor = CKEDITOR.replace("ic_content", {
|
|
|
|
|
width: '100%',
|
|
|
|
|
height: '560px',
|
|
|
|
|
readOnly: <?php echo (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'true' : 'false'); ?>,
|
|
|
|
|
readOnly: <?php echo (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'false' : 'false'); ?>,
|
|
|
|
|
filebrowserBrowseUrl: '/wysiwyg/ckfinder/ckfinder.php?sitecode=<?php echo $this->config->item('site_code'); ?>',
|
|
|
|
|
filebrowserUploadUrl: '/wysiwyg/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=image',
|
|
|
|
|
contentsCss: '<?php echo $this->config->item("css_source_" . $this->config->item("site_code")); ?>'
|
|
|
|
|
@ -663,17 +663,17 @@ $amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $inform
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$('#PcAmp input').on('change', function () {
|
|
|
|
|
var checked = $(this).is(':checked');
|
|
|
|
|
if (checked) {
|
|
|
|
|
meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'yes');
|
|
|
|
|
meta('save', '<?php echo $information->ic_id; ?>', 'meta_use_list_picture', 'no');
|
|
|
|
|
editor.readonly(true);
|
|
|
|
|
} else {
|
|
|
|
|
meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'no');
|
|
|
|
|
editor.readonly(false);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// $('#PcAmp input').on('change', function () {
|
|
|
|
|
// var checked = $(this).is(':checked');
|
|
|
|
|
// if (checked) {
|
|
|
|
|
// meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'yes');
|
|
|
|
|
// meta('save', '<?php echo $information->ic_id; ?>', 'meta_use_list_picture', 'no');
|
|
|
|
|
// editor.readonly(true);
|
|
|
|
|
// } else {
|
|
|
|
|
// meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'no');
|
|
|
|
|
// editor.readonly(false);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
}?>
|
|
|
|
|
|