From 23fafa6b4a2027df604a40470990db7b63bfe76d Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 7 May 2015 15:51:49 -0400 Subject: [PATCH] Make images loaded lazily on the repo tags page, as they will not be needed in the read-only (common) case. --- .../directives/ui/tag-operations-dialog.css | 8 ++ .../directives/repo-view/repo-panel-tags.html | 8 +- static/directives/tag-operations-dialog.html | 24 +++++- .../directives/repo-view/repo-panel-tags.js | 2 + .../js/directives/ui/tag-operations-dialog.js | 78 ++++++++++++++----- static/js/pages/repo-view.js | 19 ++--- static/partials/repo-view.html | 6 +- 7 files changed, 107 insertions(+), 38 deletions(-) diff --git a/static/css/directives/ui/tag-operations-dialog.css b/static/css/directives/ui/tag-operations-dialog.css index 1bbccaaff..75a52b730 100644 --- a/static/css/directives/ui/tag-operations-dialog.css +++ b/static/css/directives/ui/tag-operations-dialog.css @@ -1,4 +1,12 @@ .tag-operations-dialog .image-id { font-family: Consolas, "Lucida Console", Monaco, monospace; font-size: 12px; +} + +.tag-operations-dialog .loader-container { + height: 10px; + text-align: center; + margin-bottom: 20px; + margin-top: 10px; + position: relative; } \ No newline at end of file diff --git a/static/directives/repo-view/repo-panel-tags.html b/static/directives/repo-view/repo-panel-tags.html index a95318ba2..045f3a654 100644 --- a/static/directives/repo-view/repo-panel-tags.html +++ b/static/directives/repo-view/repo-panel-tags.html @@ -1,5 +1,5 @@
-
+
-
+
@@ -156,7 +155,8 @@
-
\ No newline at end of file diff --git a/static/directives/tag-operations-dialog.html b/static/directives/tag-operations-dialog.html index 92a8a7fd0..54dddd698 100644 --- a/static/directives/tag-operations-dialog.html +++ b/static/directives/tag-operations-dialog.html @@ -1,4 +1,24 @@
+ + + +