35 lines
1.1 KiB
JavaScript
Raw Normal View History

2025-08-13 11:14:39 +08:00
/*
* PIT-ADMS V7.0.3 敏捷开发框架
* Copyright (c) 2013-2018 Hexagon PPM
* 创建人力软-前端开发组
* 2018.05.09
* 个人中心-语言设置
*/
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.bind();
},
bind: function () {
$('#Setting').lrselect({
url: top.$.rootUrl + '/LR_LGManager/LGType/GetList',
value: 'F_Code',
text: 'F_Name',
title: 'F_Name'
});
var code = top.$.cookie('Learn_ADMS_V7_Language') || learun.language.getMainCode();
$('#Setting').lrselectSet(code);
$('#lr_save_btn').on('click', function () {
var formData = $('#form').lrGetFormData();
top.$.cookie('Learn_ADMS_V7_Language', formData.Setting, { path: "/Home/", httpOnly: true });
top.$.cookie('Learn_ADMS_V7_Language', formData.Setting, { path: "/UserCenter/", httpOnly: true });
learun.alert.success('设置成功');
});
}
};
page.init();
}