eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject incubator-eagle git commit: [EAGLE-617] Scrollbar is missing when install Map Reduce History Job Monitoring
Date Fri, 14 Oct 2016 03:28:24 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/master 5e57c7bbc -> 0bca234ff


[EAGLE-617] Scrollbar is missing when install Map Reduce History Job Monitoring

add check logic in uiSrv. When dialog close, will check current existed dialog for body 'modal-open'

Author: zombieJ <smith3816@gmail.com>

Closes #503 from zombieJ/EAGLE-617.


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/0bca234f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/0bca234f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/0bca234f

Branch: refs/heads/master
Commit: 0bca234ff8d6b747a62853ff1f3028fc9ab1e4f9
Parents: 5e57c7b
Author: zombieJ <smith3816@gmail.com>
Authored: Fri Oct 14 11:28:11 2016 +0800
Committer: zombieJ <smith3816@gmail.com>
Committed: Fri Oct 14 11:28:11 2016 +0800

----------------------------------------------------------------------
 .../src/main/webapp/app/dev/public/js/services/uiSrv.js      | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/0bca234f/eagle-server/src/main/webapp/app/dev/public/js/services/uiSrv.js
----------------------------------------------------------------------
diff --git a/eagle-server/src/main/webapp/app/dev/public/js/services/uiSrv.js b/eagle-server/src/main/webapp/app/dev/public/js/services/uiSrv.js
index e0bb77d..6ce77b8 100644
--- a/eagle-server/src/main/webapp/app/dev/public/js/services/uiSrv.js
+++ b/eagle-server/src/main/webapp/app/dev/public/js/services/uiSrv.js
@@ -94,6 +94,10 @@
 					entity: _entity
 				});
 				$mdl.remove();
+
+				if ($(".modal-backdrop").length) {
+					$("body").addClass("modal-open");
+				}
 			});
 
 			// Function
@@ -225,6 +229,10 @@
 					name: name
 				});
 				$mdl.remove();
+
+				if ($(".modal-backdrop").length) {
+					$("body").addClass("modal-open");
+				}
 			});
 
 			// Function


Mime
View raw message