Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aaPanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
aaPanel
Commits
77584bd5
Commit
77584bd5
authored
Jul 04, 2019
by
jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix site settings for some display issues
parent
dd1526a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
16 deletions
+24
-16
public_backup.js
BTPanel/static/js/public_backup.js
+10
-7
public_backup_.js
BTPanel/static/js/public_backup_.js
+0
-1
site.js
BTPanel/static/js/site.js
+14
-8
No files found.
BTPanel/static/js/public_backup.js
View file @
77584bd5
...
...
@@ -514,13 +514,16 @@ var bt =
};
if
(
!
config
.
hasOwnProperty
(
'
time
'
))
config
.
time
=
2000
;
if
(
typeof
config
.
msg
==
'
string
'
&&
bt
.
contains
(
config
.
msg
,
'
ERROR
'
))
config
.
time
=
0
;
if
(
config
.
hasOwnProperty
(
'
icon
'
)){
if
(
typeof
config
.
icon
==
'
boolean
'
)
config
.
icon
=
config
.
icon
?
1
:
2
;
}
else
if
(
config
.
hasOwnProperty
(
'
status
'
)){
config
.
icon
=
config
.
status
?
1
:
2
;
}
if
(
config
.
hasOwnProperty
(
'
icon
'
))
{
if
(
typeof
config
.
icon
==
'
boolean
'
)
config
.
icon
=
config
.
icon
?
1
:
2
;
}
else
if
(
config
.
hasOwnProperty
(
'
status
'
))
{
config
.
icon
=
config
.
status
?
1
:
2
;
if
(
!
config
.
status
)
{
btnObj
.
time
=
0
;
}
}
if
(
config
.
icon
)
btnObj
.
icon
=
config
.
icon
;
btnObj
.
time
=
config
.
time
;
var
msg
=
''
...
...
BTPanel/static/js/public_backup_.js
deleted
100644 → 0
View file @
dd1526a1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
BTPanel/static/js/site.js
View file @
77584bd5
...
...
@@ -598,8 +598,10 @@ var site = {
})
},
reload
:
function
(
index
)
{
site
.
reload
(
7
);
$
(
'
#ssl_tabs span:eq(
'
+
index
+
'
)
'
).
trigger
(
'
click
'
);
if
(
index
==
undefined
)
index
=
0
var
_sel
=
$
(
'
#ssl_tabs .on
'
);
if
(
_sel
.
length
==
0
)
_sel
=
$
(
'
#ssl_tabs span:eq(0)
'
);
_sel
.
trigger
(
'
click
'
);
}
},
edit
:
{
...
...
@@ -609,7 +611,7 @@ var site = {
var
list
=
[
{
items
:
[
{
name
:
'
newdomain
'
,
width
:
'
4
5
0px
'
,
type
:
'
textarea
'
,
placeholder
:
lan
.
site
.
domain_help
},
{
name
:
'
newdomain
'
,
width
:
'
4
0
0px
'
,
type
:
'
textarea
'
,
placeholder
:
lan
.
site
.
domain_help
},
{
name
:
'
btn_submit_domain
'
,
text
:
lan
.
site
.
add
,
type
:
'
button
'
,
callback
:
function
(
sdata
)
{
var
arrs
=
sdata
.
newdomain
.
split
(
"
\n
"
);
...
...
@@ -1686,7 +1688,7 @@ var site = {
"
<div class='info-r ml0 mt5' >
"
+
"
<input class='btswitch btswitch-ios' id='type' type='checkbox' name='type'
"
+
(
obj
.
type
==
1
?
'
checked="checked"
'
:
''
)
+
"
/><label class='btswitch-btn phpmyadmin-btn' for='type' style='float:left'></label>
"
+
"
<div style='display: inline-block;'>
"
+
"
<span class='tname' style='margin-left:10px;position: relative;top: -5px;'>
"
+
lan
.
site
.
reserve_url
+
"
</span>
"
+
"
<span class='tname' style='margin-left:10px;position: relative;top: -5px;
width:150px;
'>
"
+
lan
.
site
.
reserve_url
+
"
</span>
"
+
"
<input class='btswitch btswitch-ios' id='holdpath' type='checkbox' name='holdpath'
"
+
(
obj
.
holdpath
==
1
?
'
checked="checked"
'
:
''
)
+
"
/><label class='btswitch-btn phpmyadmin-btn' for='holdpath' style='float:left'></label>
"
+
"
</div>
"
+
"
</div>
"
+
...
...
@@ -1696,7 +1698,7 @@ var site = {
"
<div class='info-r ml0'><input name='redirectname' class='bt-input-text mr5'
"
+
(
types
?
''
:
'
disabled="disabled"
'
)
+
"
type='text' style='width:300px' value='
"
+
obj
.
redirectname
+
"
'></div>
"
+
"
</div>
"
+
"
<div class='line' style='clear:both;'>
"
+
"
<span class='tname'>
"
+
lan
.
site
.
re
serve
_type
+
"
</span>
"
+
"
<span class='tname'>
"
+
lan
.
site
.
re
direct
_type
+
"
</span>
"
+
"
<div class='info-r ml0'>
"
+
"
<select class='bt-input-text mr5' name='domainorpath' style='width:100px'><option value='domain'
"
+
(
obj
.
domainorpath
==
'
domain
'
?
'
selected ="selected"
'
:
""
)
+
"
>
"
+
lan
.
site
.
domain
+
"
</option><option value='path'
"
+
(
obj
.
domainorpath
==
'
path
'
?
'
selected ="selected"
'
:
""
)
+
"
>
"
+
lan
.
site
.
path
+
"
</option></select>
"
+
"
<span class='mlr15'>
"
+
lan
.
site
.
redirect_mode
+
"
</span>
"
+
...
...
@@ -1963,7 +1965,7 @@ var site = {
sub_conter
+=
"
<div class='sub-groud'>
"
+
"
<input name='rep
"
+
((
i
+
1
)
*
2
-
1
)
+
"
' class='bt-input-text mr10' placeholder='
"
+
lan
.
site
.
con_rep_info
+
"
' type='text' style='width:200px' value='
"
+
obj
.
subfilter
[
i
][
'
sub1
'
]
+
"
'>
"
+
"
<input name='rep
"
+
((
i
+
1
)
*
2
)
+
"
' class='bt-input-text ml10' placeholder='
"
+
lan
.
site
.
to_con
+
"
' type='text' style='width:200px' value='
"
+
obj
.
subfilter
[
i
][
'
sub2
'
]
+
"
'>
"
+
"
<a href='javascript:;' class='proxy_del_sub' style='color:red;'>
删除
</a>
"
+
"
<a href='javascript:;' class='proxy_del_sub' style='color:red;'>
Del
</a>
"
+
"
</div>
"
;
}
if
(
i
==
2
)
$
(
'
.add-replace-prosy
'
).
attr
(
'
disabled
'
,
'
disabled
'
)
...
...
@@ -1992,7 +1994,7 @@ var site = {
"
<input class='btswitch btswitch-ios' id='openNginx' type='checkbox' name='cache'
"
+
(
obj
.
cache
==
1
?
'
checked="checked"
'
:
''
)
+
"
'><label class='btswitch-btn phpmyadmin-btn' for='openNginx'></label>
"
+
"
</div>
"
+
"
<div style='display: inline-block;'>
"
+
"
<span class='tname' style='margin-left:10px;position: relative;top: -5px;'>
"
+
lan
.
site
.
proxy_adv
+
"
</span>
"
+
"
<span class='tname' style='margin-left:10px;position: relative;top: -5px;
width:150px;
'>
"
+
lan
.
site
.
proxy_adv
+
"
</span>
"
+
"
<input class='btswitch btswitch-ios' id='openAdvanced' type='checkbox' name='advanced'
"
+
(
obj
.
advanced
==
1
?
'
checked="checked"
'
:
''
)
+
"
'><label class='btswitch-btn phpmyadmin-btn' for='openAdvanced'></label>
"
+
"
</div>
"
+
"
</div>
"
+
...
...
@@ -2339,7 +2341,11 @@ var site = {
})
},
reload
:
function
(
index
)
{
$
(
'
.site-menu p:eq(
'
+
index
+
'
)
'
).
trigger
(
'
click
'
);
if
(
index
==
undefined
)
index
=
0
var
_sel
=
$
(
'
.site-menu p.bgw
'
);
if
(
_sel
.
length
==
0
)
_sel
=
$
(
'
.site-menu p:eq(0)
'
);
_sel
.
trigger
(
'
click
'
);
},
plugin_firewall
:
function
()
{
var
typename
=
bt
.
get_cookie
(
'
serverType
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment