Commit cad80263 authored by Tim Zallmann's avatar Tim Zallmann

Fixes New Project Bug

parent f149a76b
...@@ -2,9 +2,9 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -2,9 +2,9 @@ document.addEventListener('DOMContentLoaded', () => {
const importBtnTooltip = 'Please enter a valid project name.'; const importBtnTooltip = 'Please enter a valid project name.';
const $importBtnWrapper = $('.import_gitlab_project'); const $importBtnWrapper = $('.import_gitlab_project');
$('.how_to_import_link').bind('click', function (e) { $('.how_to_import_link').bind('click', (e) => {
e.preventDefault(); e.preventDefault();
$(this).next('.modal').show(); $('.how_to_import_link').next('.modal').show();
}); });
$('.modal-header .close').bind('click', () => { $('.modal-header .close').bind('click', () => {
...@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
}); });
$('#project_path').keyup(() => { $('#project_path').keyup(() => {
if ($(this).val().trim().length !== 0) { if ($('#project_path').val().trim().length !== 0) {
$('.btn_import_gitlab_project').attr('disabled', false); $('.btn_import_gitlab_project').attr('disabled', false);
$importBtnWrapper.attr('title', ''); $importBtnWrapper.attr('title', '');
$importBtnWrapper.removeClass('has-tooltip'); $importBtnWrapper.removeClass('has-tooltip');
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
%canvas#yearChart.padded{ height: 250 } %canvas#yearChart.padded{ height: 250 }
%script#pipelinesChartsData{ type: "application/json" } %script#pipelinesChartsData{ type: "application/json" }
- chartData = [] - chartData = []
- [:week, :month, :year].each do |scope| - [:week, :month, :year].each do |scope|
- chartData.push({ 'scope' => scope, 'labels' => @charts[scope].labels, 'totalValues' => @charts[scope].total, 'successValues' => @charts[scope].success }) - chartData.push({ 'scope' => scope, 'labels' => @charts[scope].labels, 'totalValues' => @charts[scope].total, 'successValues' => @charts[scope].success })
= chartData.to_json.html_safe = chartData.to_json.html_safe
.tree-content-holder.js-tree-content{ 'data-logs-path': escape_javascript(@logs_path)} .tree-content-holder.js-tree-content{ 'data-logs-path': escape_javascript(@logs_path) }
.table-holder .table-holder
%table.table#tree-slider{ class: "table_#{@hex_path} tree-table" } %table.table#tree-slider{ class: "table_#{@hex_path} tree-table" }
%thead %thead
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment