diff --git a/app/assets/javascripts/sitewide/dropdown_selector.js b/app/assets/javascripts/sitewide/dropdown_selector.js index af6a66158..110725013 100644 --- a/app/assets/javascripts/sitewide/dropdown_selector.js +++ b/app/assets/javascripts/sitewide/dropdown_selector.js @@ -244,10 +244,10 @@ var dropdownSelector = (function() { var perfectScroll; var dropdownContainer; + if (selectElement.length === 0) return; + // Check if element exist or already initialized - if (selectElement.length === 0 || selectElement.next().hasClass('dropdown-selector-container')) { - selectElement.next().remove(); - } + if (selectElement.next().hasClass('dropdown-selector-container')) selectElement.next().remove(); // Create initial container after select block dropdownContainer = selectElement.after('').next(); diff --git a/app/views/my_modules/activities.html.erb b/app/views/my_modules/activities.html.erb index a9b9024e5..b07cae79c 100644 --- a/app/views/my_modules/activities.html.erb +++ b/app/views/my_modules/activities.html.erb @@ -9,26 +9,30 @@
-
-
-

<%= t('activities.index.no_activities_task_message') %>

+
+
+
+

<%= t('activities.index.no_activities_task_message') %>

+
+
+ <%= render partial: "global_activities/activity_list.html.erb" %> +
+ +
-
- <%= render partial: "global_activities/activity_list.html.erb" %> -
- -
-
- <%= render partial: "my_modules/activities/side_filters" %> +
+
+ <%= render partial: "my_modules/activities/side_filters" %> +