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:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2016-08-28 02:09:21 +0300
committerLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-01 16:35:34 +0300
commit0e2dd06f259a42e360cb73a9f17de46cc0ab31fd (patch)
treef687bf35dbb0d23b644e62738b8422750934bc1d
parentbeff8b9bd077fea4bbcb09881396b57ba07f568e (diff)
Completed project filter dropdown, still need to move it from inline to ProjectSelect.js (or different)
-rw-r--r--app/assets/javascripts/gl_dropdown.js1
-rw-r--r--app/helpers/issuables_helper.rb2
-rw-r--r--app/views/dashboard/todos/index.html.haml8
3 files changed, 8 insertions, 3 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index ba59ce3c956..77b2082cba0 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -202,7 +202,6 @@
var ref, ref1, ref2, ref3, searchFields, selector, self;
this.el = el1;
this.options = options;
- console.log(this.options);
this.updateLabel = bind(this.updateLabel, this);
this.hidden = bind(this.hidden, this);
this.opened = bind(this.opened, this);
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index dcf2ef6bb0a..5c04bba323f 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -56,7 +56,7 @@ module IssuablesHelper
project = Project.find_by(id: project_id)
if project
- project.name_with_namespace || project.name
+ project.name_with_namespace
else
default_label
end
diff --git a/app/views/dashboard/todos/index.html.haml b/app/views/dashboard/todos/index.html.haml
index 42dc1fd0118..ffdb88975a5 100644
--- a/app/views/dashboard/todos/index.html.haml
+++ b/app/views/dashboard/todos/index.html.haml
@@ -88,7 +88,13 @@
filterable: true,
selectable: true,
fieldName: 'project_id',
- data: $projectDropdown.data('data')
+ data: $projectDropdown.data('data'),
+ clicked: function() {
+ if ($projectDropdown.hasClass('js-filter-submit')) {
+ console.log('booM!');
+ return $projectDropdown.closest('form').submit();
+ }
+ }
});
$('form.filter-form').on('submit', function (event) {