From 06b1e5cf20f0202fb5a5461bf8b3dff3d9d2f0ff Mon Sep 17 00:00:00 2001 From: mlorb Date: Tue, 8 Jan 2019 16:30:52 +0100 Subject: [PATCH] Allow org. administrators to invite them onto all projects --- app/assets/javascripts/projects/index.js | 6 +++--- app/assets/stylesheets/themes/scinote.scss | 2 ++ app/views/user_projects/_index.html.erb | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index c3962e0e1..756570ac9 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -11,7 +11,7 @@ I18n setupSidebarTree */ //= require comments -(function() { +(function(global) { var newProjectModal = null; var newProjectModalForm = null; var newProjectModalBody = null; @@ -203,7 +203,7 @@ } // Initialize users editing modal remote loading. - function initUsersEditLink($el) { + global.initUsersEditLink = function($el) { $el.find('.manage-users-link') .on('ajax:before', function() { var projectId = $(this).closest('.panel-default').attr('id'); @@ -771,4 +771,4 @@ initProjectsViewModeSwitch(); initSorting(); loadCardsView(); -}()); +}(window)); diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index d9e5a715c..7d98b7ad3 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -783,7 +783,9 @@ ul.double-line > li { } .manage-users-link { + display: block; padding-left: 15px; + margin-bottom: 10px; } } diff --git a/app/views/user_projects/_index.html.erb b/app/views/user_projects/_index.html.erb index f9dd4b7c3..d06094c74 100644 --- a/app/views/user_projects/_index.html.erb +++ b/app/views/user_projects/_index.html.erb @@ -1,6 +1,6 @@
<%= t("projects.index.users_tab") %>

-