/*!
 * This source file is part of the open source project
 * ExpressionEngine (https://expressionengine.com)
 *
 * @link      https://expressionengine.com/
 * @copyright Copyright (c) 2003-2022, Packet Tide, LLC (https://www.packettide.com)
 * @license   https://expressionengine.com/license Licensed under Apache License, Version 2.0
 */

"use strict";

(function ($) {
	$(document).ready(function () {
		$('.form-standard form').on('submit', function (e) {
			// Only submit the inputs in the visible tab (by removing the other tab's inputs)
			$('.form-standard form input:not(:visible)').not('[type="hidden"]').remove();
		});
	});
})(jQuery);
