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:
authorConnor Shea <connor.james.shea@gmail.com>2016-07-15 19:20:29 +0300
committerConnor Shea <connor.james.shea@gmail.com>2016-07-26 23:58:01 +0300
commit92cd19709b5abb3af8852c496ce65adc85e94043 (patch)
treebd0753f99164fb74dafc2d90c2b6c6d5b12299e8 /app/views/import/gitlab
parent0c799be6b6fc0166473c82039ebf662a0558ed8f (diff)
Remove inline scripts from import pages.
Instead add data attributes to a JS hook element on every import status page.
Diffstat (limited to 'app/views/import/gitlab')
-rw-r--r--app/views/import/gitlab/status.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/import/gitlab/status.html.haml b/app/views/import/gitlab/status.html.haml
index aedb8468eca..fcfc6fd37f4 100644
--- a/app/views/import/gitlab/status.html.haml
+++ b/app/views/import/gitlab/status.html.haml
@@ -51,5 +51,4 @@
Import
= icon("spinner spin", class: "loading-icon")
-:javascript
- new ImporterStatus("#{jobs_import_gitlab_path}", "#{import_gitlab_path}");
+.js-importer-status{ data: { jobs_import_path: "#{jobs_import_gitlab_path}", import_path: "#{import_gitlab_path}" } }