// --
// Copyright (C) 2001-2018 OTRS AG, https://otrs.com/
// --
// This software comes with ABSOLUTELY NO WARRANTY. For details, see
// the enclosed file COPYING for license information (GPL). If you
// did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.
// --
"use strict";
var Core = Core || {};
Core.Agent = Core.Agent || {};
Core.Agent.Admin = Core.Agent.Admin || {};
/**
* @namespace Core.Agent.Admin.SysConfig
* @memberof Core.Agent.Admin
* @author OTRS AG
* @description
* This namespace contains the special module functions for the SysConfig module.
*/
Core.Agent.Admin.SysConfig = (function (TargetNS) {
/**
* @name Init
* @memberof Core.Agent.Admin.SysConfig
* @function
* @description
* Initializes SysConfig screen.
*/
TargetNS.Init = function () {
$('#AdminSysConfig h3 input[type="checkbox"]').click(function () {
$(this).parent('h3').parent('fieldset').toggleClass('Invalid');
});
// don't allow editing disabled fields
$('#AdminSysConfig').on('focus', '.Invalid input', function() {
$(this).blur();
});
};
return TargetNS;
}(Core.Agent.Admin.SysConfig || {}));