michael@0: // -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: var gOCSPDialog = { michael@0: _updateUI: function (called_by) { michael@0: var securityOCSPEnabled = document.getElementById("security.OCSP.enabled"); michael@0: var enableOCSP = document.getElementById("enableOCSP"); michael@0: var requireOCSP = document.getElementById("requireOCSP"); michael@0: michael@0: if (called_by) { michael@0: securityOCSPEnabled.value = enableOCSP.checked ? 1 : 0 michael@0: } else { michael@0: enableOCSP.checked = parseInt(securityOCSPEnabled.value) != 0; michael@0: } michael@0: michael@0: requireOCSP.disabled = !enableOCSP.checked; michael@0: return undefined; michael@0: } michael@0: };