Fix forms for http2_support

This commit is contained in:
Jamie Curnow 2018-11-21 08:04:31 +10:00
parent 411734f392
commit e53d9fa3eb
6 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,7 @@ module.exports = Mn.View.extend({
} }
let enabled = id === 'new' || parseInt(id, 10) > 0; let enabled = id === 'new' || parseInt(id, 10) > 0;
this.ui.ssl_forced this.ui.ssl_forced.add(this.ui.http2_support)
.prop('disabled', !enabled) .prop('disabled', !enabled)
.parents('.form-group') .parents('.form-group')
.css('opacity', enabled ? 1 : 0.5); .css('opacity', enabled ? 1 : 0.5);

View File

@ -39,7 +39,7 @@ module.exports = Mn.View.extend({
} }
let enabled = id === 'new' || parseInt(id, 10) > 0; let enabled = id === 'new' || parseInt(id, 10) > 0;
this.ui.ssl_forced this.ui.ssl_forced.add(this.ui.http2_support)
.prop('disabled', !enabled) .prop('disabled', !enabled)
.parents('.form-group') .parents('.form-group')
.css('opacity', enabled ? 1 : 0.5); .css('opacity', enabled ? 1 : 0.5);

View File

@ -36,7 +36,7 @@ module.exports = Mn.View.extend({
} }
let enabled = id === 'new' || parseInt(id, 10) > 0; let enabled = id === 'new' || parseInt(id, 10) > 0;
this.ui.ssl_forced this.ui.ssl_forced.add(this.ui.http2_support)
.prop('disabled', !enabled) .prop('disabled', !enabled)
.parents('.form-group') .parents('.form-group')
.css('opacity', enabled ? 1 : 0.5); .css('opacity', enabled ? 1 : 0.5);

View File

@ -13,6 +13,7 @@ const model = Backbone.Model.extend({
domain_names: [], domain_names: [],
certificate_id: 0, certificate_id: 0,
ssl_forced: false, ssl_forced: false,
http2_support: false,
meta: {}, meta: {},
advanced_config: '', advanced_config: '',
// The following are expansions: // The following are expansions:

View File

@ -19,6 +19,7 @@ const model = Backbone.Model.extend({
caching_enabled: false, caching_enabled: false,
allow_websocket_upgrade: false, allow_websocket_upgrade: false,
block_exploits: false, block_exploits: false,
http2_support: false,
advanced_config: '', advanced_config: '',
meta: {}, meta: {},
// The following are expansions: // The following are expansions:

View File

@ -16,6 +16,7 @@ const model = Backbone.Model.extend({
certificate_id: 0, certificate_id: 0,
ssl_forced: false, ssl_forced: false,
block_exploits: false, block_exploits: false,
http2_support: false,
advanced_config: '', advanced_config: '',
meta: {}, meta: {},
// The following are expansions: // The following are expansions: