35 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 版 本 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();
}