diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-13 00:08:15 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-13 00:08:15 +0200 |
commit | 3dc94ba8eb74caa6f4eae29970fe261f51e1942e (patch) | |
tree | 8536d30b919ba97b0ed8f0c69146aa7d27e2b99c /app/assets | |
parent | 8426846d6dd018b16c7193ef1bea4527ea08360b (diff) | |
download | gitlab-ce-3dc94ba8eb74caa6f4eae29970fe261f51e1942e.tar.gz |
ajax-loader for dashboard
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/images/ajax-loader-facebook.gif | bin | 0 -> 723 bytes | |||
-rw-r--r-- | app/assets/javascripts/loader.js | 11 | ||||
-rw-r--r-- | app/assets/stylesheets/projects.css.scss | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/images/ajax-loader-facebook.gif b/app/assets/images/ajax-loader-facebook.gif Binary files differnew file mode 100644 index 00000000000..6350e5f45b6 --- /dev/null +++ b/app/assets/images/ajax-loader-facebook.gif diff --git a/app/assets/javascripts/loader.js b/app/assets/javascripts/loader.js new file mode 100644 index 00000000000..6fa0b525814 --- /dev/null +++ b/app/assets/javascripts/loader.js @@ -0,0 +1,11 @@ +var Loader = { + img_src: "/assets/ajax-loader.gif", + + html: + function(width) { + img = $("<img>"); + img.attr("width", width); + img.attr("src", this.img_src); + return img; + } +} diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index dd897ed39bb..f923deb2126 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -581,3 +581,9 @@ h4.middle-panel { } } } + +.dashboard-loader { + float:right; + margin-right:30px; + display:none; +} |