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
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-26 07:45:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-26 07:45:01 +0300
commita1d09190e3311cfe7744e9792a4c69822ff84b39 (patch)
tree174a843e9cb68564bb875a1b0bf8b2497c22e2f5 /app/views
parent12430b65d44f93bb77979d7bb546814c637fd5c6 (diff)
Prevent unnecessary doubling of js events on import pages and user calendar
Diffstat (limited to 'app/views')
-rw-r--r--app/views/import/bitbucket/status.html.haml3
-rw-r--r--app/views/import/github/status.html.haml3
-rw-r--r--app/views/import/gitlab/status.html.haml3
-rw-r--r--app/views/import/gitorious/status.html.haml3
-rw-r--r--app/views/projects/issues/_issue_context.html.haml3
-rw-r--r--app/views/projects/merge_requests/show/_context.html.haml5
-rw-r--r--app/views/projects/new.html.haml11
-rw-r--r--app/views/users/show.html.haml3
8 files changed, 12 insertions, 22 deletions
diff --git a/app/views/import/bitbucket/status.html.haml b/app/views/import/bitbucket/status.html.haml
index 9da3c920c62..4e49bbbc7fa 100644
--- a/app/views/import/bitbucket/status.html.haml
+++ b/app/views/import/bitbucket/status.html.haml
@@ -42,5 +42,4 @@
= button_tag "Import", class: "btn js-add-to-import"
:coffeescript
- $ ->
- new ImporterStatus("#{jobs_import_bitbucket_path}", "#{import_bitbucket_path}")
+ new ImporterStatus("#{jobs_import_bitbucket_path}", "#{import_bitbucket_path}")
diff --git a/app/views/import/github/status.html.haml b/app/views/import/github/status.html.haml
index 9c4d91013ec..f0bc3e6b1ac 100644
--- a/app/views/import/github/status.html.haml
+++ b/app/views/import/github/status.html.haml
@@ -42,5 +42,4 @@
= button_tag "Import", class: "btn js-add-to-import"
:coffeescript
- $ ->
- new ImporterStatus("#{jobs_import_github_path}", "#{import_github_path}")
+ new ImporterStatus("#{jobs_import_github_path}", "#{import_github_path}")
diff --git a/app/views/import/gitlab/status.html.haml b/app/views/import/gitlab/status.html.haml
index e809643d8d4..33b0a21acf3 100644
--- a/app/views/import/gitlab/status.html.haml
+++ b/app/views/import/gitlab/status.html.haml
@@ -42,5 +42,4 @@
= button_tag "Import", class: "btn js-add-to-import"
:coffeescript
- $ ->
- new ImporterStatus("#{jobs_import_gitlab_path}", "#{import_gitlab_path}")
+ new ImporterStatus("#{jobs_import_gitlab_path}", "#{import_gitlab_path}")
diff --git a/app/views/import/gitorious/status.html.haml b/app/views/import/gitorious/status.html.haml
index 645241a6c69..78c5e957be0 100644
--- a/app/views/import/gitorious/status.html.haml
+++ b/app/views/import/gitorious/status.html.haml
@@ -42,5 +42,4 @@
= button_tag "Import", class: "btn js-add-to-import"
:coffeescript
- $ ->
- new ImporterStatus("#{jobs_import_gitorious_path}", "#{import_gitorious_path}")
+ new ImporterStatus("#{jobs_import_gitorious_path}", "#{import_gitorious_path}")
diff --git a/app/views/projects/issues/_issue_context.html.haml b/app/views/projects/issues/_issue_context.html.haml
index 91fe0b68371..c3d6dc2e50b 100644
--- a/app/views/projects/issues/_issue_context.html.haml
+++ b/app/views/projects/issues/_issue_context.html.haml
@@ -43,7 +43,6 @@
You're receiving notifications because you're subscribed to this thread.
:coffeescript
- $ ->
- new Subscription("#{toggle_subscription_namespace_project_issue_path(@issue.project.namespace, @project, @issue)}")
+ new Subscription("#{toggle_subscription_namespace_project_issue_path(@issue.project.namespace, @project, @issue)}")
diff --git a/app/views/projects/merge_requests/show/_context.html.haml b/app/views/projects/merge_requests/show/_context.html.haml
index 14ad89a2000..80e5c223d60 100644
--- a/app/views/projects/merge_requests/show/_context.html.haml
+++ b/app/views/projects/merge_requests/show/_context.html.haml
@@ -45,7 +45,4 @@
You're receiving notifications because you're subscribed to this thread.
:coffeescript
- $ ->
- new Subscription("#{toggle_subscription_namespace_project_merge_request_path(@merge_request.project.namespace, @project, @merge_request)}")
-
- \ No newline at end of file
+ new Subscription("#{toggle_subscription_namespace_project_merge_request_path(@merge_request.project.namespace, @project, @merge_request)}")
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 9687c8ad87c..42af2f32239 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -109,9 +109,8 @@
%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()
+ $('.how_to_import_link').bind 'click', (e) ->
+ e.preventDefault()
+ import_modal = $(this).next(".modal").show()
+ $('.modal-header .close').bind 'click', ->
+ $(".modal").hide()
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 0653fb871ae..5e1d65e2ed8 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -47,5 +47,4 @@
= render 'projects'
:coffeescript
- $ ->
- $(".user-calendar").load("#{user_calendar_path}")
+ $(".user-calendar").load("#{user_calendar_path}")