Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
0a1e9143
Commit
0a1e9143
authored
Feb 12, 2016
by
Marius Burkard
Browse files
Merge branch 'stable-3.1'
parents
8aa7d1f7
af56b491
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/templates/web_vhost_domain_edit.htm
View file @
0a1e9143
...
...
@@ -206,14 +206,14 @@
</div>
<tmpl_if
name=
"limit_ssl"
op=
"=="
value=
"y"
><div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
{tmpl_var name='ssl_txt'}
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
data-uncheck-fields=
"ssl_letsencrypt"
>
{tmpl_var name='ssl'}
</div>
</div>
<tmpl_if
name=
"limit_ssl_letsencrypt"
op=
"=="
value=
"y"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
{tmpl_var name='ssl_letsencrypt_txt'}
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
data-check-fields=
"ssl"
>
{tmpl_var name='ssl_letsencrypt'}
</div>
</div></tmpl_if>
...
...
interface/web/sites/web_vhost_domain_edit.php
View file @
0a1e9143
...
...
@@ -1021,7 +1021,7 @@ class page_action extends tform_actions {
if
(
$client
[
'limit_wildcard'
]
!=
'y'
&&
$this
->
dataRecord
[
'subdomain'
]
==
'*'
)
$this
->
dataRecord
[
'subdomain'
]
=
'n'
;
if
(
$client
[
'limit_ssl'
]
!=
'y'
)
$this
->
dataRecord
[
'ssl'
]
=
'n'
;
if
(
$client
[
'limit_ssl_letsencrypt'
]
!=
'y'
)
$this
->
dataRecord
[
'ssl_letsencrypt'
]
=
'n'
;
if
(
$client
[
'limit_directive_snippets'
]
!=
'y'
)
$this
->
dataRecord
[
'directive_snippets_id'
]
=
0
if
(
$client
[
'limit_directive_snippets'
]
!=
'y'
)
$this
->
dataRecord
[
'directive_snippets_id'
]
=
0
;
// only generate quota and traffic warnings if value has changed
if
(
$this
->
id
>
0
)
{
...
...
interface/web/themes/default/assets/javascripts/ispconfig.js
View file @
0a1e9143
...
...
@@ -702,6 +702,29 @@ $(document).on("click", ".addPlaceholderContent", function(){
template2
.
insertAtCaret
(
placeholderContentText
);
});
$
(
document
).
on
(
"
click
"
,
"
[data-check-fields] > input[type='checkbox']
"
,
function
()
{
if
(
$
(
this
).
is
(
'
:checked
'
))
{
var
flds
=
$
(
this
).
parent
().
attr
(
'
data-check-fields
'
);
var
tmp
=
flds
.
split
(
/,/
);
for
(
var
i
=
0
;
i
<
tmp
.
length
;
i
++
)
{
var
fname
=
tmp
[
i
];
$
(
'
input[type="checkbox"][name="
'
+
fname
+
'
"]
'
).
prop
(
'
checked
'
,
true
);
}
}
});
$
(
document
).
on
(
"
click
"
,
"
[data-uncheck-fields] > input[type='checkbox']
"
,
function
()
{
if
(
$
(
this
).
is
(
'
:checked
'
)
==
false
)
{
var
flds
=
$
(
this
).
parent
().
attr
(
'
data-uncheck-fields
'
);
var
tmp
=
flds
.
split
(
/,/
);
for
(
var
i
=
0
;
i
<
tmp
.
length
;
i
++
)
{
var
fname
=
tmp
[
i
];
$
(
'
input[type="checkbox"][name="
'
+
fname
+
'
"]
'
).
prop
(
'
checked
'
,
false
);
}
}
});
$
(
document
).
on
(
'
ready
'
,
function
()
{
$
.
fn
.
extend
({
insertAtCaret
:
function
(
myValue
){
...
...
interface/web/themes/default/assets/javascripts/ispconfig.min.js
View file @
0a1e9143
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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