summaryrefslogtreecommitdiffstats
path: root/app/views/principal_memberships/edit.js.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 10:26:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-07 10:26:36 +0000
commita4f167ec1a6d8cb3707716e73378e98e870d466f (patch)
tree0a7a6317e9c4488f3bf0d121c7ee844343040c93 /app/views/principal_memberships/edit.js.erb
parente29b4ba26ad18a1ab871effe0fa5e11c2a2b189e (diff)
downloadredmine-a4f167ec1a6d8cb3707716e73378e98e870d466f.tar.gz
redmine-a4f167ec1a6d8cb3707716e73378e98e870d466f.zip
Don't render memberships forms, use #edit instead.
git-svn-id: http://svn.redmine.org/redmine/trunk@16149 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/principal_memberships/edit.js.erb')
-rw-r--r--app/views/principal_memberships/edit.js.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/principal_memberships/edit.js.erb b/app/views/principal_memberships/edit.js.erb
new file mode 100644
index 000000000..083bac502
--- /dev/null
+++ b/app/views/principal_memberships/edit.js.erb
@@ -0,0 +1,2 @@
+$("#member-<%= @membership.id %>-roles").hide();
+$("#member-<%= @membership.id %>-form").html("<%= escape_javascript(render :partial => "edit") %>");