...
|
...
|
@@ -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();
|
|
|
|
...
|
...
|
|