        } else {
                	layer.closeAll('loading');
                    layer.msg(data.resp_msg, {icon: 2, time: 500});
                }
            }, $('#menus-form').attr('method'));
            return false;
        });

        form.on("radio(resourceType)", function (data) {
            changeType(data.value);
        });
    });
</script>