当首页被替换为一个具体页面时,让用户可以使用另一个路径作为文章列表,而不是直接消失
This commit is contained in:
@@ -19,5 +19,19 @@ include 'menu.php';
|
||||
include 'copyright.php';
|
||||
include 'common-js.php';
|
||||
include 'form-js.php';
|
||||
?>
|
||||
<script>
|
||||
$('#frontPage-recent,#frontPage-page,#frontPage-file').change(function () {
|
||||
var t = $(this);
|
||||
if (t.prop('checked')) {
|
||||
if ('frontPage-recent' == t.attr('id')) {
|
||||
$('.front-archive').addClass('hidden');
|
||||
} else {
|
||||
$('.front-archive').insertAfter(t.parent()).removeClass('hidden');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
include 'footer.php';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user