audit.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $(function()
  2. {
  3. var mainHeight = $(window).height() - $('#footer').outerHeight() - $('#header').outerHeight() - 350;
  4. var sideHeight = mainHeight + 275;
  5. $('.main-col #reviewcl').css('height', mainHeight);
  6. $('.side-col .cell').css('height', sideHeight);
  7. $('table.reviewcl .issueResult, table.reviewcl .resolved').change(function()
  8. {
  9. var result = $(this).val();
  10. if(result == 1)
  11. {
  12. $(this).closest('tr').find('.opinion').attr('readonly', true);
  13. $(this).closest('tr').find('.opinionDate').removeClass('showing').addClass('hidden');
  14. }
  15. else
  16. {
  17. $(this).closest('tr').find('.opinion').attr('readonly', false);
  18. $(this).closest('tr').find('.opinionDate').removeClass('hidden').addClass('showing');
  19. }
  20. })
  21. $("#fullScreenBtn").on("click", fullScreenReview())
  22. function fullScreenReview()
  23. {
  24. $("#mainContent").css("z-index", "999999");
  25. }
  26. $('textarea').on('mousedown', function(event)
  27. {
  28. if(!$(event.currentTarget).prop('readonly')) return;
  29. event.preventDefault();
  30. });
  31. })