Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hj Ahmad Rasyid Hj Ismail
ISPConfig 3
Commits
c2ea71b7
Commit
c2ea71b7
authored
Oct 11, 2013
by
Falko Timme
Browse files
- Make sure rewrite rules field is shown only on nginx servers (vhostsubdomains).
parent
039a16fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/templates/web_vhost_subdomain_redirect.htm
View file @
c2ea71b7
...
...
@@ -62,6 +62,7 @@
jQuery
(
'
#redirect_type option[value="R,L"]
'
).
hide
();
jQuery
(
'
#redirect_type option[value="R=301,L"]
'
).
hide
();
if
(
selected
!=
"
no
"
&&
selected
!=
""
&&
selected
!=
"
last
"
&&
selected
!=
"
break
"
&&
selected
!=
"
redirect
"
&&
selected
!=
"
permanent
"
&&
selected
!=
"
proxy
"
)
jQuery
(
'
#redirect_type option[value="no"]
'
).
attr
(
'
selected
'
,
'
selected
'
);
jQuery
(
'
.nginx
'
).
show
();
}
else
{
jQuery
(
'
#redirect_type option[value="last"]
'
).
attr
(
'
disabled
'
,
'
disabled
'
);
jQuery
(
'
#redirect_type option[value="break"]
'
).
attr
(
'
disabled
'
,
'
disabled
'
);
...
...
@@ -75,6 +76,7 @@
jQuery
(
'
#redirect_type option[value="permanent"]
'
).
hide
();
jQuery
(
'
#redirect_type option[value="proxy"]
'
).
hide
();
if
(
selected
!=
"
no
"
&&
selected
!=
""
&&
selected
!=
"
R
"
&&
selected
!=
"
L
"
&&
selected
!=
"
R,L
"
&&
selected
!=
"
R=301,L
"
)
jQuery
(
'
#redirect_type option[value="no"]
'
).
attr
(
'
selected
'
,
'
selected
'
);
jQuery
(
'
.nginx
'
).
hide
();
}
});
}
...
...
Write
Preview
Supports
Markdown
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