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,10 +557,6 @@
<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() {
if ($('#PcAmp input').is(':checked')) {
editor.readonly(true);
}
$('#PcAmp input').on('change', function(){ $('#PcAmp input').on('change', function(){
var checked = $(this).is(':checked'); var checked = $(this).is(':checked');
if(checked) { if(checked) {
@ -568,8 +566,7 @@
meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'no'); meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'no');
editor.readonly(false); editor.readonly(false);
} }
}) });
})
</script> </script>
<?php } ?> <?php } ?>
<?php if ($information->amp_status === '1') { ?> <?php if ($information->amp_status === '1') { ?>

Loading…
Cancel
Save