Преглед изворни кода

HUE-7229 [editor] Expanding a result row a second time does not reset the scroll of the modal to the top

Enrico Berti пре 8 година
родитељ
комит
830fa6c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      desktop/core/src/desktop/templates/common_header_footer_components.mako

+ 1 - 0
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -544,6 +544,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
 
 
     $('#rowDetailsModal').on('shown', function () {
     $('#rowDetailsModal').on('shown', function () {
       $('.modal-backdrop').css('z-index', '1070');
       $('.modal-backdrop').css('z-index', '1070');
+      $('#rowDetailsModal .modal-body').scrollTop(0);
     });
     });
 
 
     if ($.fn.editableform) {
     if ($.fn.editableform) {