'use strict'; (function ($) { $(document).on('click', '.layout-builder .layout-builder-toggle', function () { $('.layout-builder').toggleClass('show'); }); $(".edit_document_deparment").change(function() { var archId = $("input[name='arch_id']"); var currentArchId = archId.val(); var currentText = currentArchId.split("/")[1]; var selectedId = $(this).find('option:selected').val(); if(currentText.length) { archId.val(selectedId + "/" + currentText); } else { archId.val(selectedId + "/"); } }); $(window).on('load', function () { setTimeout(function () { $('.layout-builder').removeClass('show'); }, 500); }); $('.body').append(`
Layout