Showing
1 changed file
with
15 additions
and
4 deletions
@@ -360,10 +360,21 @@ function shelveModal(title, html) { | @@ -360,10 +360,21 @@ function shelveModal(title, html) { | ||
360 | }); | 360 | }); |
361 | 361 | ||
362 | 362 | ||
363 | - if (len === 1 && g.selected[0].isAdvance === 'N') { | ||
364 | - $('#advanceBeginTime, #advanceEndTime').prop('disabled', true); | ||
365 | - $('#advanceBeginTime').parents('.form-group').find('.btn').addClass('disabled'); | ||
366 | - } | 363 | + // if (len === 1) { |
364 | + // if(g.selected[0].isAdvance === 'N'){ | ||
365 | + // $('#advanceBeginTime, #advanceEndTime').prop('disabled', true); | ||
366 | + // $('#advanceBeginTime').parents('.form-group').find('.btn').addClass('disabled'); | ||
367 | + // }else{ | ||
368 | + // $('#shelveTime').prop('disabled', true); | ||
369 | + // $('#shelveTime').parents('.form-group').next(".form-group").find('.btn').addClass('disabled'); | ||
370 | + // } | ||
371 | + // } | ||
372 | + g.selected.forEach(function(item){ | ||
373 | + if(item.isAdvance === 'N'){ | ||
374 | + $('#advanceBeginTime, #advanceEndTime').prop('disabled', true); | ||
375 | + $('#advanceBeginTime').parents('.form-group').find('.btn').addClass('disabled'); | ||
376 | + } | ||
377 | + }); | ||
367 | var e = new common.edit('.shelve-form'); | 378 | var e = new common.edit('.shelve-form'); |
368 | e.init(); | 379 | e.init(); |
369 | 380 |
-
Please register or login to post a comment