update editor

hotfix/远程访问多媒体中心
lmrwork 8 years ago
parent 6c5d4342c5
commit 3ac590a9da

@ -542,7 +542,6 @@
<?php if (is_series_site()) {
if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
$PcAmpChecked = 'checked';
echo "<script>$(function(){editor.readonly(true)})</script>";
} else {
$PcAmpChecked = '';
}
@ -556,16 +555,21 @@
<a href="<?php echo($amp_build_url); ?>" target="_blank"> HTML构建工具 </a>
</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');
$(function() {
if ($('#PcAmp input').is(':checked')) {
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');
editor.readonly(true);
} else {
meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'no');
editor.readonly(false);
}
})
})
</script>
<?php } ?>
<?php if ($information->amp_status === '1') { ?>

Loading…
Cancel
Save