Skip to content

Commit

Permalink
fix: trigger the script when document is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
whaliendev committed Sep 14, 2021
1 parent 0ceb8a5 commit 6d1b893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/popup.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body {
margin: 0;
padding: 0;
background-image: linear-gradient(315deg, #48c6ef 0%, #6f86d6 75%);
background-image: linear-gradient(315deg, #6f85d6ea 0%, #6f86d6 45%);
}

header {
Expand Down
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $.ajaxSetup({
/**
* 触发查询按钮click事件,获取全部成绩
*/
(function fetchScores() {
$(function fetchScores() {
$('#searchForm .chosen-select').first().val('');
$('#searchForm .chosen-select').last().val('');
$('.chosen-single span').text('全部');
Expand All @@ -32,7 +32,7 @@ $.ajaxSetup({
$('select.ui-pg-selbox').val(150);

$('#search_go').trigger('click');
})();
});

$(document).ajaxComplete(customDynamicUI);

Expand Down

0 comments on commit 6d1b893

Please sign in to comment.