diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/wikis_controller.rb | 1 | ||||
-rw-r--r-- | app/views/wikis/edit.js.erb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb index a6f051587..5f40bb934 100644 --- a/app/controllers/wikis_controller.rb +++ b/app/controllers/wikis_controller.rb @@ -24,7 +24,6 @@ class WikisController < ApplicationController @wiki = @project.wiki || Wiki.new(:project => @project) @wiki.safe_attributes = params[:wiki] @wiki.save if request.post? - render(:update) {|page| page.replace_html "tab-content-wiki", :partial => 'projects/settings/wiki'} end # Delete a project's wiki diff --git a/app/views/wikis/edit.js.erb b/app/views/wikis/edit.js.erb new file mode 100644 index 000000000..3d2d5b385 --- /dev/null +++ b/app/views/wikis/edit.js.erb @@ -0,0 +1 @@ +Element.update('tab-content-wiki', '<%= escape_javascript(render :partial => 'projects/settings/wiki') %>'); |