v1.js 1.2 KB

1234567891011121314151617181920212223242526
  1. window.initThinkResult = function()
  2. {
  3. /* 禁用问题组件 */
  4. /* Disable question components */
  5. $('.think-result-content .form-control').prop('disabled', true);
  6. $('.think-result-content .think-check-list .item-control input').prop('disabled', true);
  7. $('.think-result-content .think-check-list .item-control').off('click');
  8. $('.think-result-content textarea.form-control').addClass('overflow-hidden line-clamp-4');
  9. $('.think-result-content textarea.form-control').attr('rows', 4);
  10. $('.think-result-content .think-check-list .item-control textarea.form-control').removeClass('line-clamp-4');
  11. $('.think-result-content .think-check-list .item-control textarea.form-control').addClass('line-clamp-2');
  12. $('.think-result-content .think-check-list .item-control textarea.form-control').attr('rows', 2);
  13. $('.think-result-content .think-check-list .item-control textarea.form-control').each(function()
  14. {
  15. $(this).attr('title', $(this).val());
  16. });
  17. setTimeout(function()
  18. {
  19. $('.think-result-content .form-batch-table input').each(function()
  20. {
  21. $(this).attr('title', $(this).val());
  22. });
  23. }, 50);
  24. }