summaryrefslogtreecommitdiff
path: root/app/views/ci
diff options
context:
space:
mode:
authorJason Lee <huacnlee@gmail.com>2015-11-10 19:17:37 +0800
committerJason Lee <huacnlee@gmail.com>2015-11-10 19:17:37 +0800
commit18cb430f7983ea557cf2308f5ea7c0af8b79a7b5 (patch)
tree14580177aaed975bf2dd6ffa1c4aa2b327b021cc /app/views/ci
parent354b69dde2ba399a4269a0f544fd7a4e399d8b7e (diff)
downloadgitlab-ce-18cb430f7983ea557cf2308f5ea7c0af8b79a7b5.tar.gz
Replace CoffeeScript block into JavaScript in Views.
For example view: shared/issuable/_context CoffeeScript: 190ms JavaScript: 19.7ms
Diffstat (limited to 'app/views/ci')
-rw-r--r--app/views/ci/lints/show.html.haml16
1 files changed, 9 insertions, 7 deletions
diff --git a/app/views/ci/lints/show.html.haml b/app/views/ci/lints/show.html.haml
index a9b954771c5..fb9057e4882 100644
--- a/app/views/ci/lints/show.html.haml
+++ b/app/views/ci/lints/show.html.haml
@@ -11,15 +11,17 @@
.controls.pull-left.prepend-top-10
= submit_tag "Validate", class: 'btn btn-success submit-yml'
-
+
%p.text-center.loading
%i.fa.fa-refresh.fa-spin
.results.prepend-top-20
-:coffeescript
- $(".loading").hide()
- $('form').bind 'ajax:beforeSend', ->
- $(".loading").show()
- $('form').bind 'ajax:complete', ->
- $(".loading").hide()
+:javascript
+ $(".loading").hide();
+ $('form').bind('ajax:beforeSend', function() {
+ $(".loading").show();
+ });
+ $('form').bind('ajax:complete', function() {
+ $(".loading").hide();
+ });