当首页被替换为一个具体页面时,让用户可以使用另一个路径作为文章列表,而不是直接消失

This commit is contained in:
joyqi
2013-11-18 00:00:51 +08:00
parent fc5afc23bc
commit 666e78868e
9 changed files with 125 additions and 39 deletions
+14
View File
@@ -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';
?>