ORIENT/modules/system/controllers/updates/manage.htm

31 lines
918 B
HTML
Raw Normal View History

<?php Block::put('breadcrumb') ?>
<ul>
2015-02-03 08:57:07 +00:00
<li><a href="<?= Backend::url('system/updates') ?>"><?= e(trans('system::lang.updates.menu_label')) ?></a></li>
<li><?= e(trans($this->pageTitle)) ?></li>
</ul>
<?php Block::endPut() ?>
<?= $this->listRender('manage') ?>
<style>
td {
vertical-align: middle !important;
}
</style>
<!-- Unable to factor in where to put this script. I want to put it in a js file for global use of switch/checkboxes, but I don't know where.
ref issue: https://github.com/octobercms/october/issues/2714
-->
<script>
$("[data-check|='oc']").each(function() {
$(this).find('input').on('change', function() {
this.value = this.checked ? 1 : 0;
});
});
$(document).ajaxComplete(function() {
$("[data-check|='oc']").each(function() {
$(this).find('input').on('change', function() {
this.value = this.checked ? 1 : 0;
});
});
});
</script>