Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改进对 Safari 浏览器的兼容性 #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aria2/perp/aria2/rc.main
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if test ${1} = 'start' ; then
echo "Awaiting $Aria2_sleep seconds before launching aria2..."
sleep $Aria2_sleep
fi
killall -q aria2c
exec /koolshare/aria2/aria2c --conf-path=/koolshare/aria2/aria2.conf
fi
fi
Expand Down
12 changes: 7 additions & 5 deletions aria2/webs/Module_aria2.asp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ function buildswitch() {
}

function update_visibility(r) {
if (r && r.type == "checkbox")
oncheckclick(r);
var rrt = document.getElementById("switch");
if (document.aria2_form.aria2_enable.value !== "1") {
rrt.checked = false;
Expand Down Expand Up @@ -593,7 +595,7 @@ function initial_dir() {
function initial_dir_status(data) {
if (data != "" && data.length != 2) {
get_layer_items("0");
eval("var default_dir=" + data);
//eval("var default_dir=" + data);
} else {
//document.getElementById("EditExports").style.display = "none";
disk_flag = 1;
Expand Down Expand Up @@ -1233,7 +1235,7 @@ function toggle_func() {
<label>启用CPU占用限制</label>
</td>
<td>
<input type="checkbox" id="aria2_cpulimit_enable" checked="" onclick="oncheckclick(this)" onchange="update_visibility();">
<input type="checkbox" id="aria2_cpulimit_enable" checked="" onchange="update_visibility(this);">
<input type="hidden" id="f_aria2_cpulimit_enable" name="aria2_cpulimit_enable" value="" />
<input style="display: none;" type="text" class="input_ss_table" style="width:auto;" name="aria2_cpulimit_value" value="30" maxlength="40" size="40" id="aria2_cpulimit_value">
<small>(范围: 1 - 100; 默认: 30)</small>
Expand Down Expand Up @@ -1350,7 +1352,7 @@ function toggle_func() {
<label>启用 RPC</label>
</td>
<td>
<input type="checkbox" id="aria2_enable_rpc" checked="" onclick="oncheckclick(this)" onchange="update_visibility();">
<input type="checkbox" id="aria2_enable_rpc" checked="" onchange="update_visibility(this);">
<input type="hidden" id="f_aria2_enable_rpc" name="aria2_enable_rpc" value="" />
<small>*</small>
</td>
Expand Down Expand Up @@ -1521,7 +1523,7 @@ function toggle_func() {
<label>启用 DHT</label>
</td>
<td>
<input type="checkbox" id="aria2_enable_dht" checked="" onclick="oncheckclick(this)" onchange="update_visibility();">
<input type="checkbox" id="aria2_enable_dht" checked="" onchange="update_visibility(this);">
<input type="hidden" id="f_aria2_enable_dht" name="aria2_enable_dht" value="" />
<small>*</small>
</td>
Expand Down Expand Up @@ -1622,7 +1624,7 @@ function toggle_func() {
<label>启用会话session强制保存</label>
</td>
<td>
<input type="checkbox" id="aria2_force_save" checked="" onclick="oncheckclick(this)" onchange="update_visibility();">
<input type="checkbox" id="aria2_force_save" checked="" onchange="update_visibility(this);">
<input type="hidden" id="f_aria2_force_save" name="aria2_force_save" value="" />
<small>*</small>
</td>
Expand Down