Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

Commit de73d53

Browse files
committed
Bug Fixes
1 parent 2f4f856 commit de73d53

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

js/pjw-classlist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function ClassListPlugin() {
346346
${this.getHTML(data, "lessontime")}
347347
</div>
348348
349-
${data.places == "" ? "" : `<div class="pjw-class-places">${this.getHTML(data, "weeks")}<span>${data.places}</span></div>`}
349+
${(!("places" in data) || data.places == "") ? "" : `<div class="pjw-class-places">${this.getHTML(data, "weeks")}<span>${data.places}</span></div>`}
350350
351351
<div class="pjw-class-sideinfo">
352352
${this.getHTML(data, "timedetail")}

js/pjw-core.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ window.potatojw_intl = function() {
77

88
window.pjw_version = "@version@";
99
if (window.pjw_version[0] == "@")
10-
window.pjw_version = "0.2.6";
10+
window.pjw_version = "0.2.6.1";
1111

1212
if (jQuery.fn.jquery == "3.5.1")
1313
window.$$ = jQuery.noConflict();
@@ -79,7 +79,8 @@ window.potatojw_intl = function() {
7979
$$("#comment").css({
8080
width: "100%",
8181
left: 0,
82-
top: "5px"
82+
top: "5px",
83+
color: "rgba(0, 0, 0, .4)"
8384
});
8485
}
8586

@@ -461,8 +462,8 @@ window.potatojw_intl = function() {
461462
}
462463
};
463464
} else if (pjw_mode == "all_course_list") {
464-
if ($$("#termList > option:eq(1)").html() != "2020-2021学年第二学期")
465-
$$("#termList > option:eq(1)").before('<option value="20202">*2020-2021学年第二学期</option>');
465+
// if ($$("#termList > option:eq(1)").html() != "2020-2021学年第二学期")
466+
// $$("#termList > option:eq(1)").before('<option value="20202">*2020-2021学年第二学期</option>');
466467

467468
window.list = new PJWClassList($$("body"), ["acl_major_switch", "switch", "hours", "frozen"]);
468469
total_weeks_history = {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "PotatoPlus",
4-
"version": "0.2.6",
4+
"version": "0.2.6.1",
55
"description": "Potato Overflow! NJU土豆改善工程",
66
"icons": {
77
"16": "img/logo.png",

potatoplus.user.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)