Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
a6e4095dfb8e5c9eddf066ca6643608fabae57f6
1 parent
ff2043bf
在线登记
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
res/js/yohood.js
res/js/yohood.js
View file @
a6e4095
...
...
@@ -779,15 +779,27 @@ define('yohood', function(require, exports) {
$
(
".content-header a"
).
bind
(
"click"
,
function
(
e
)
{
var
href
=
$
(
this
).
attr
(
"href"
);
$
(
this
).
attr
(
"href"
,
"javascript:void(0)"
);
if
(
window
.
confirm
(
'切换后已填信息将被清空,是否切换?'
))
var
isNotEmpty
=
false
;
//判断表单数据是否为空
$
.
each
(
$
(
"input[type=text]"
),
function
(
i
,
obj
)
{
window
.
location
.
href
=
href
;
}
else
{
$
(
this
).
attr
(
"href"
,
href
);
return
false
;
if
(
$
.
trim
(
$
(
obj
).
val
())
!=
''
)
{
isNotEmpty
=
true
;
return
;
}
});
if
(
isNotEmpty
)
{
$
(
this
).
attr
(
"href"
,
"javascript:void(0)"
);
if
(
window
.
confirm
(
'切换后已填信息将被清空,是否切换?'
))
{
window
.
location
.
href
=
href
;
}
else
{
$
(
this
).
attr
(
"href"
,
href
);
return
false
;
}
}
});
$
(
".apply-operate span"
).
bind
(
"click"
,
function
()
...
...
Please
register
or
login
to post a comment