Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shops-fe
·
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
weiqingting
9 years ago
Commit
e051cfb7136dbfaef797ad21cb04b7681a66d24e
1 parent
4945b663
提交
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
client/js/goods/netsale.js
client/js/goods/netsale.js
View file @
e051cfb
...
...
@@ -360,10 +360,21 @@ function shelveModal(title, html) {
});
if
(
len
===
1
&&
g
.
selected
[
0
].
isAdvance
===
'N'
)
{
$
(
'#advanceBeginTime, #advanceEndTime'
).
prop
(
'disabled'
,
true
);
$
(
'#advanceBeginTime'
).
parents
(
'.form-group'
).
find
(
'.btn'
).
addClass
(
'disabled'
);
}
// if (len === 1) {
// if(g.selected[0].isAdvance === 'N'){
// $('#advanceBeginTime, #advanceEndTime').prop('disabled', true);
// $('#advanceBeginTime').parents('.form-group').find('.btn').addClass('disabled');
// }else{
// $('#shelveTime').prop('disabled', true);
// $('#shelveTime').parents('.form-group').next(".form-group").find('.btn').addClass('disabled');
// }
// }
g
.
selected
.
forEach
(
function
(
item
){
if
(
item
.
isAdvance
===
'N'
){
$
(
'#advanceBeginTime, #advanceEndTime'
).
prop
(
'disabled'
,
true
);
$
(
'#advanceBeginTime'
).
parents
(
'.form-group'
).
find
(
'.btn'
).
addClass
(
'disabled'
);
}
});
var
e
=
new
common
.
edit
(
'.shelve-form'
);
e
.
init
();
...
...
Please
register
or
login
to post a comment