File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function optimize_index_score_query() {
4242 jQuery ( "#index_score_div" ) . slideToggle ( ) ;
4343 } ) ;
4444
45- if ( option . getBool ( 'fold_index_socre' ) ) {
45+ if ( option . getBool ( 'fold_index_socre' , true ) ) {
4646 jQuery ( "#index_score_div" ) . slideToggle ( 0 ) ;
4747 index_show_score_register_click ( ) ;
4848 } else {
@@ -67,7 +67,6 @@ function index_show_score_register_click() {
6767 * 加载成绩
6868 */
6969function index_show_score_query ( ) {
70- // 查询所有成绩后筛选,避免和用户手动查询冲突
7170 jQuery . get ( base_url + '/edu/StudentScore/B_StudentScoreQuery.aspx' )
7271 // 使用 Promise 避免回调地狱
7372 . then ( function ( html ) {
@@ -94,7 +93,7 @@ function index_show_score_query() {
9493 html = jQuery ( html ) ;
9594 let score_table = html . find ( '#dgScore' ) ;
9695 if ( score_table . length == 0 ) {
97- throw new Error ( 'Incorrect page loaed ' ) ;
96+ throw new Error ( 'Incorrect page loaded ' ) ;
9897 }
9998
10099 // 删除非最终成绩行
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ <h2>优化</h2>
6868 </ div >
6969 < div class ="form-group ">
7070 < div class ="checkbox ">
71- < input id ="checkbox2-2 " type ="checkbox " data-key ="fold_index_socre " data-checked ="false " data-unchecked ="true " data-default ="false ">
71+ < input id ="checkbox2-2 " type ="checkbox " data-key ="fold_index_socre " data-checked ="false " data-unchecked ="true " data-default ="true ">
7272 < label for ="checkbox2-2 "> 在首页显示成绩</ label >
7373 </ div >
7474 </ div >
You can’t perform that action at this time.
0 commit comments