Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
website
提交
88b2183e
W
website
项目概览
openeuler
/
website
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
88b2183e
编写于
9月 30, 2019
作者:
E
edisonxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
addajaxinvoke
上级
8e7f5c70
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
60 addition
and
12 deletion
+60
-12
content/en/cla.md
content/en/cla.md
+3
-3
content/zh/cla.md
content/zh/cla.md
+3
-3
themes/project/static/js/cla.js
themes/project/static/js/cla.js
+54
-6
未找到文件。
content/en/cla.md
浏览文件 @
88b2183e
...
@@ -93,7 +93,7 @@ Please select one applicable statement from the following and fill in the blanks
...
@@ -93,7 +93,7 @@ Please select one applicable statement from the following and fill in the blanks
Fax:
Fax:
</td>
</td>
<td>
<td>
<input
type=
"text"
id=
"individual-
F
ax"
/>
<input
type=
"text"
id=
"individual-
f
ax"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -170,7 +170,7 @@ Please select one applicable statement from the following and fill in the blanks
...
@@ -170,7 +170,7 @@ Please select one applicable statement from the following and fill in the blanks
Fax:
Fax:
</td>
</td>
<td>
<td>
<input
type=
"text"
id=
"legalentity-
F
ax"
/>
<input
type=
"text"
id=
"legalentity-
f
ax"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -183,7 +183,7 @@ Please select one applicable statement from the following and fill in the blanks
...
@@ -183,7 +183,7 @@ Please select one applicable statement from the following and fill in the blanks
<table
id=
"cla-table"
>
<table
id=
"cla-table"
>
<tr>
<tr>
<td>
<td>
<a
href=
"#"
id=
"sign-cla-button"
class=
"btn btn-template-main"
>
<a
href=
"#"
id=
"sign-cla-button"
class=
"btn btn-template-main"
posturl=
"http://159.138.129.162:8888/cla"
>
Sign
Sign
</a>
</a>
<a
href=
"#"
id=
"reset-cla-button"
class=
"btn btn-template-main"
>
<a
href=
"#"
id=
"reset-cla-button"
class=
"btn btn-template-main"
>
...
...
content/zh/cla.md
浏览文件 @
88b2183e
...
@@ -96,7 +96,7 @@ title = "签署CLA"
...
@@ -96,7 +96,7 @@ title = "签署CLA"
传真:
传真:
</td>
</td>
<td>
<td>
<input
type=
"text"
id=
"individual-
F
ax"
/>
<input
type=
"text"
id=
"individual-
f
ax"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -173,7 +173,7 @@ title = "签署CLA"
...
@@ -173,7 +173,7 @@ title = "签署CLA"
传真:
传真:
</td>
</td>
<td>
<td>
<input
type=
"text"
id=
"legalentity-
F
ax"
/>
<input
type=
"text"
id=
"legalentity-
f
ax"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -186,7 +186,7 @@ title = "签署CLA"
...
@@ -186,7 +186,7 @@ title = "签署CLA"
<table
id=
"cla-table"
>
<table
id=
"cla-table"
>
<tr>
<tr>
<td>
<td>
<a
href=
"#"
id=
"sign-cla-button"
class=
"btn btn-template-main"
>
<a
href=
"#"
id=
"sign-cla-button"
class=
"btn btn-template-main"
posturl=
"http://159.138.129.162:8888/cla"
>
签署
签署
</a>
</a>
<a
href=
"#"
id=
"reset-cla-button"
class=
"btn btn-template-main"
>
<a
href=
"#"
id=
"reset-cla-button"
class=
"btn btn-template-main"
>
...
...
themes/project/static/js/cla.js
浏览文件 @
88b2183e
...
@@ -59,7 +59,7 @@ function initClaPage() {
...
@@ -59,7 +59,7 @@ function initClaPage() {
var
checkpass
=
true
;
var
checkpass
=
true
;
$
(
"
input[type=text]
"
,
"
#individual-table
"
).
each
(
function
(
i
)
{
$
(
"
input[type=text]
"
,
"
#individual-table
"
).
each
(
function
(
i
)
{
if
(
$
(
this
).
hasClass
(
"
require
"
))
{
if
(
$
(
this
).
hasClass
(
"
require
"
))
{
if
(
$
(
this
).
val
(
)
==
""
)
{
if
(
$
.
trim
(
$
(
this
).
val
()
)
==
""
)
{
checkpass
=
false
;
checkpass
=
false
;
return
false
;
return
false
;
}
}
...
@@ -74,7 +74,7 @@ function initClaPage() {
...
@@ -74,7 +74,7 @@ function initClaPage() {
}
}
return
false
;
return
false
;
}
}
var
email
=
$
(
'
#individual-email
'
).
val
(
);
var
email
=
$
.
trim
(
$
(
'
#individual-email
'
).
val
()
);
if
(
!
regemail
.
test
(
email
))
{
if
(
!
regemail
.
test
(
email
))
{
if
(
lang
==
"
zh-cn
"
)
{
if
(
lang
==
"
zh-cn
"
)
{
$
(
'
#tip-cla-label
'
).
html
(
"
邮箱格式不正确!
"
);
$
(
'
#tip-cla-label
'
).
html
(
"
邮箱格式不正确!
"
);
...
@@ -83,7 +83,7 @@ function initClaPage() {
...
@@ -83,7 +83,7 @@ function initClaPage() {
}
}
return
false
;
return
false
;
}
}
var
telephone
=
$
(
'
#individual-telephone
'
).
val
(
);
var
telephone
=
$
.
trim
(
$
(
'
#individual-telephone
'
).
val
()
);
if
((
!
regphone
.
test
(
telephone
))
&&
(
!
regmobile
.
test
(
telephone
)))
{
if
((
!
regphone
.
test
(
telephone
))
&&
(
!
regmobile
.
test
(
telephone
)))
{
if
(
lang
==
"
zh-cn
"
)
{
if
(
lang
==
"
zh-cn
"
)
{
$
(
'
#tip-cla-label
'
).
html
(
"
电话格式不正确!
"
);
$
(
'
#tip-cla-label
'
).
html
(
"
电话格式不正确!
"
);
...
@@ -97,7 +97,7 @@ function initClaPage() {
...
@@ -97,7 +97,7 @@ function initClaPage() {
var
checkpass
=
true
;
var
checkpass
=
true
;
$
(
"
input[type=text]
"
,
"
#legalentity-table
"
).
each
(
function
(
i
)
{
$
(
"
input[type=text]
"
,
"
#legalentity-table
"
).
each
(
function
(
i
)
{
if
(
$
(
this
).
hasClass
(
"
require
"
))
{
if
(
$
(
this
).
hasClass
(
"
require
"
))
{
if
(
$
(
this
).
val
(
)
==
""
)
{
if
(
$
.
trim
(
$
(
this
).
val
()
)
==
""
)
{
checkpass
=
false
;
checkpass
=
false
;
return
false
;
return
false
;
}
}
...
@@ -112,7 +112,7 @@ function initClaPage() {
...
@@ -112,7 +112,7 @@ function initClaPage() {
}
}
return
false
;
return
false
;
}
}
var
email
=
$
(
'
#legalentity-email
'
).
val
(
);
var
email
=
$
.
trim
(
$
(
'
#legalentity-email
'
).
val
()
);
if
(
!
regemail
.
test
(
email
))
{
if
(
!
regemail
.
test
(
email
))
{
if
(
lang
==
"
zh-cn
"
)
{
if
(
lang
==
"
zh-cn
"
)
{
$
(
'
#tip-cla-label
'
).
html
(
"
邮箱格式不正确!
"
);
$
(
'
#tip-cla-label
'
).
html
(
"
邮箱格式不正确!
"
);
...
@@ -121,16 +121,64 @@ function initClaPage() {
...
@@ -121,16 +121,64 @@ function initClaPage() {
}
}
return
false
;
return
false
;
}
}
var
telephone
=
$
(
'
#legalentity-telephone
'
).
val
(
);
var
telephone
=
$
.
trim
(
$
(
'
#legalentity-telephone
'
).
val
()
);
if
((
!
regphone
.
test
(
telephone
))
&&
(
!
regmobile
.
test
(
telephone
)))
{
if
((
!
regphone
.
test
(
telephone
))
&&
(
!
regmobile
.
test
(
telephone
)))
{
if
(
lang
==
"
zh-cn
"
)
{
if
(
lang
==
"
zh-cn
"
)
{
$
(
'
#tip-cla-label
'
).
html
(
"
电话格式不正确!
"
);
$
(
'
#tip-cla-label
'
).
html
(
"
电话格式不正确!
"
);
}
else
{
}
else
{
$
(
'
#tip-cla-label
'
).
html
(
"
Telephone format is incorrent!
"
);
$
(
'
#tip-cla-label
'
).
html
(
"
Telephone format is incorrent!
"
);
}
}
return
false
;
}
}
}
}
// build json
var
posturl
=
$
(
this
).
attr
(
"
posturl
"
);
var
jsonData
=
{};
if
(
v
==
0
)
{
// individual
jsonData
=
{
"
type
"
:
v
,
"
name
"
:
$
.
trim
(
$
(
'
#individual-name
'
).
val
()),
"
address
"
:
$
.
trim
(
$
(
'
#individual-address
'
).
val
()),
"
date
"
:
$
.
trim
(
$
(
'
#individual-date
'
).
val
()),
"
email
"
:
$
.
trim
(
$
(
'
#individual-email
'
).
val
()),
"
telephone
"
:
$
.
trim
(
$
(
'
#individual-telephone
'
).
val
()),
"
fax
"
:
$
.
trim
(
$
(
'
#individual-fax
'
).
val
()),
};
}
else
{
// legalentity
jsonData
=
{
"
type
"
:
v
,
"
name
"
:
$
.
trim
(
$
(
'
#legalentity-name
'
).
val
()),
// only for legalentity
"
title
"
:
$
.
trim
(
$
(
'
#legalentity-title
'
).
val
()),
// only for legalentity
"
corporation
"
:
$
.
trim
(
$
(
'
#legalentity-corporation
'
).
val
()),
"
address
"
:
$
.
trim
(
$
(
'
#legalentity-address
'
).
val
()),
"
date
"
:
$
.
trim
(
$
(
'
#legalentity-date
'
).
val
()),
"
email
"
:
$
.
trim
(
$
(
'
#legalentity-email
'
).
val
()),
"
telephone
"
:
$
.
trim
(
$
(
'
#legalentity-telephone
'
).
val
()),
"
fax
"
:
$
.
trim
(
$
(
'
#legalentity-fax
'
).
val
()),
};
}
// send request
$
.
ajax
({
type
:
"
POST
"
,
url
:
posturl
,
data
:
JSON
.
stringify
(
jsonData
),
contentType
:
"
application/json; charset=utf-8
"
,
crossDomain
:
true
,
datatype
:
"
json
"
,
success
:
function
(
data
)
{
alert
(
data
);
},
error
:
function
()
{
alert
(
"
请求失败
"
);
}
});
return
false
;
return
false
;
});
});
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录