Преглед на файлове

修改审批下拉高度

laiguoran преди 4 години
родител
ревизия
5e086e0820

+ 1 - 1
app/view/advance/modal_audit.ejs

@@ -681,7 +681,7 @@
         scrollBox.scrollTop(0);
         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
         const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
-        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 390 && hdheight - bdiv > 390) {
+        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
             scrollBox.scrollTop(hdheight - bdiv);
         }
     });

+ 1 - 1
app/view/change/info_modal.ejs

@@ -776,7 +776,7 @@
         scrollBox.scrollTop(0);
         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
         const hdheight = hdiv ? hdiv.parents('.list-group-item').offset().top : null;
-        if (hdiv && scrollBox.length &&  scrollBox[0].scrollHeight > 450 && hdheight - bdiv > 450) {
+        if (hdiv && scrollBox.length &&  scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
             scrollBox.scrollTop(hdheight - bdiv);
         }
     });

+ 1 - 1
app/view/ledger/audit_modal.ejs

@@ -579,7 +579,7 @@
         scrollBox.scrollTop(0);
         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
         const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
-        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 390 && hdheight - bdiv > 390) {
+        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
             scrollBox.scrollTop(hdheight - bdiv);
         }
     });

+ 1 - 1
app/view/material/audit_modal.ejs

@@ -689,7 +689,7 @@
         scrollBox.scrollTop(0);
         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
         const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
-        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 390 && hdheight - bdiv > 390) {
+        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
             scrollBox.scrollTop(hdheight - bdiv);
         }
     });

+ 1 - 1
app/view/revise/info_modal.ejs

@@ -923,7 +923,7 @@
             scrollBox.scrollTop(0);
             const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
             const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
-            if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 390 && hdheight - bdiv > 390) {
+            if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
                 scrollBox.scrollTop(hdheight - bdiv);
             }
         });

+ 1 - 1
app/view/stage/audit_modal.ejs

@@ -912,7 +912,7 @@
         scrollBox.scrollTop(0);
         const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
         const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
-        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 390 && hdheight - bdiv > 390) {
+        if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
             scrollBox.scrollTop(hdheight - bdiv);
         }
     });