Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Lee <huacnlee@gmail.com>2015-11-10 14:17:37 +0300
committerJason Lee <huacnlee@gmail.com>2015-11-10 14:17:37 +0300
commit18cb430f7983ea557cf2308f5ea7c0af8b79a7b5 (patch)
tree14580177aaed975bf2dd6ffa1c4aa2b327b021cc /app/views/projects/new.html.haml
parent354b69dde2ba399a4269a0f544fd7a4e399d8b7e (diff)
Replace CoffeeScript block into JavaScript in Views.
For example view: shared/issuable/_context CoffeeScript: 190ms JavaScript: 19.7ms
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index daab2326bc7..a02c12f06a8 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -124,9 +124,11 @@
Creating project &amp; repository.
%p Please wait a moment, this page will automatically refresh when ready.
-:coffeescript
- $('.how_to_import_link').bind 'click', (e) ->
- e.preventDefault()
- import_modal = $(this).next(".modal").show()
- $('.modal-header .close').bind 'click', ->
- $(".modal").hide()
+:javascript
+ $('.how_to_import_link').bind('click', function (e) {
+ e.preventDefault();
+ var import_modal = $(this).next(".modal").show();
+ });
+ $('.modal-header .close').bind('click', function() {
+ $(".modal").hide();
+ });