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