batchclose.js 619 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Set duplicate field.
  3. *
  4. * @param string $resolution
  5. * @param int $feedbackID
  6. * @access public
  7. * @return void
  8. */
  9. function setDuplicate(resolution, feedbackID)
  10. {
  11. if(resolution == 'repeat')
  12. {
  13. $('#duplicateFeedbackBox' + feedbackID).show();
  14. }
  15. else
  16. {
  17. $('#duplicateFeedbackBox' + feedbackID).hide();
  18. }
  19. }
  20. $(function()
  21. {
  22. $('select[id^="repeatFeedbackIDList"]').picker(
  23. {
  24. disableEmptySearch : true,
  25. dropWidth : 'auto',
  26. onReady: function(event)
  27. {
  28. $(event.picker.$container).addClass('required');
  29. }
  30. });
  31. });