tweaked performance of config generator
This commit is contained in:
parent
b164f515a8
commit
1fdfdd07bb
@ -2,7 +2,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-04-03 13:44:36
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-04-03 14:25:52
|
||||
* @Last Modified time: 2016-04-11 17:16:30
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@ -24,13 +24,17 @@ $('#mod-select').change(function() {
|
||||
$('#version-select').append('<option value="1_2-1_3">1.2 及 1.3 版</option>');
|
||||
$('#version-select').append('<option value="1_2-lower">1.2 版以下</option>');
|
||||
}
|
||||
|
||||
showConfig();
|
||||
});
|
||||
|
||||
$('#version-select').change(function() {
|
||||
function showConfig() {
|
||||
$('#config-13_1-upper').hide();
|
||||
$('#config-13_1-lower').hide();
|
||||
$('#config-1_4-upper').hide();
|
||||
$('#config-1_2-1_3').hide();
|
||||
$('#config-1_2-lower').hide();
|
||||
$('#config-'+$(this).val()).show();
|
||||
});
|
||||
$('#config-'+$('#version-select').val()).show();
|
||||
}
|
||||
|
||||
$('#version-select').change(showConfig);
|
||||
|
@ -103,7 +103,7 @@
|
||||
$pages = array(1 => ['title'=>'用户中心', 'link'=>'index.php', 'icon'=>'fa-dashboard'],
|
||||
2 => ['title'=>'皮肤上传', 'link'=>'upload.php', 'icon'=>'fa-upload'],
|
||||
3 => ['title'=>'个人资料', 'link'=>'profile.php', 'icon'=>'fa-user'],
|
||||
4 => ['title'=>'使用说明', 'link'=>'manual.php', 'icon'=>'fa-book']);
|
||||
4 => ['title'=>'配置生成', 'link'=>'manual.php', 'icon'=>'fa-book']);
|
||||
|
||||
foreach ($pages as $key => $value) {
|
||||
echo ($data['page_title'] == $value['title']) ? '<li class="active">' : '<li>';
|
||||
|
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-04-03 12:15:35
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-04-04 08:10:23
|
||||
* @Last Modified time: 2016-04-11 17:12:57
|
||||
*/
|
||||
require "../libraries/session.inc.php";
|
||||
$data['style'] = <<< 'EOT'
|
||||
@ -23,8 +23,8 @@ View::show('header', $data);
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
使用说明
|
||||
<small>Manual</small>
|
||||
配置生成
|
||||
<small>Configuration Generator</small>
|
||||
</h1>
|
||||
</section>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user