Fix unsetting http2_support

This commit is contained in:
Jamie Curnow 2018-11-13 20:51:55 +10:00
parent a457a40359
commit 411734f392
3 changed files with 7 additions and 7 deletions

View File

@ -59,8 +59,8 @@ module.exports = Mn.View.extend({
data.ssl_forced = true;
}
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
data.http2_support = true;
if (typeof data.http2_support !== 'undefined') {
data.http2_support = !!data.http2_support;
}
if (typeof data.domain_names === 'string' && data.domain_names) {

View File

@ -44,7 +44,7 @@ module.exports = Mn.View.extend({
.parents('.form-group')
.css('opacity', enabled ? 1 : 0.5);
this.ui.http2_support.prop('disabled', !enabled)
this.ui.http2_support.prop('disabled', !enabled);
},
'click @ui.save': function (e) {
@ -68,8 +68,8 @@ module.exports = Mn.View.extend({
data.ssl_forced = true;
}
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
data.http2_support = true;
if (typeof data.http2_support !== 'undefined') {
data.http2_support = !!data.http2_support;
}
if (typeof data.domain_names === 'string' && data.domain_names) {

View File

@ -62,8 +62,8 @@ module.exports = Mn.View.extend({
data.ssl_forced = true;
}
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
data.http2_support = true;
if (typeof data.http2_support !== 'undefined') {
data.http2_support = !!data.http2_support;
}
if (typeof data.domain_names === 'string' && data.domain_names) {