return {
init: function () {
var smtpCheckbox = null;
- elBySelAll('input[name="values[mail_send_method]"]', undefined, (function (radioCheckbox) {
+ var methods = elBySelAll('input[name="values[mail_send_method]"]', undefined, (function (radioCheckbox) {
radioCheckbox.addEventListener('change', this._onChange.bind(this));
if (radioCheckbox.value === 'smtp') smtpCheckbox = radioCheckbox;
}).bind(this));
+ // This configuration part is unavailable when running in enterprise mode.
+ if (methods.length === 0) {
+ return;
+ }
+
Core.triggerEvent(smtpCheckbox, 'change');
},
* Initializes the generator for rewrite rules
*/
init: function () {
+ var urlOmitIndexPhp = elById('url_omit_index_php');
+
+ // This configuration part is unavailable when running in enterprise mode.
+ if (urlOmitIndexPhp === null) {
+ return;
+ }
+
_container = elCreate('dl');
var dt = elCreate('dt');
dt.classList.add('jsOnly');
_container.appendChild(dt);
_container.appendChild(dd);
- var insertAfter = elById('url_omit_index_php').closest('dl');
+ var insertAfter = urlOmitIndexPhp.closest('dl');
insertAfter.parentNode.insertBefore(_container, insertAfter.nextSibling);
},
* @param {Dictionary} apps
*/
init: function (apps) {
+ // This configuration part is unavailable when running in enterprise mode.
+ if (_option === null) {
+ return;
+ }
+
if (_option.checked) {
// option is already enabled, ignore it
return;