update editor v1

hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent 3ac590a9da
commit 22547084de

@ -465,8 +465,10 @@
} }
}); });
}); });
//是否只使用构建工具
if ($('#PcAmp input').is(':checked')) {
editor.readonly(true);
}
//新闻日历 //新闻日历
$(function () { $(function () {
@ -555,21 +557,16 @@
<a href="<?php echo($amp_build_url); ?>" target="_blank"> HTML构建工具 </a> <a href="<?php echo($amp_build_url); ?>" target="_blank"> HTML构建工具 </a>
</label> | </label> |
<script type="text/javascript"> <script type="text/javascript">
$(function() { $('#PcAmp input').on('change', function(){
if ($('#PcAmp input').is(':checked')) { var checked = $(this).is(':checked');
if(checked) {
meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'yes');
editor.readonly(true); 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> </script>
<?php } ?> <?php } ?>
<?php if ($information->amp_status === '1') { ?> <?php if ($information->amp_status === '1') { ?>

Loading…
Cancel
Save