Show a popup listing available editors when hovering over the edit tab

This commit is contained in:
Tom Hughes 2010-11-15 00:44:17 +00:00
parent 6c3b5aa9d4
commit 04a6c41be9
8 changed files with 154 additions and 15 deletions

View file

@ -32,7 +32,7 @@ class SiteController < ApplicationController
end
def edit
editor = @user.preferred_editor || DEFAULT_EDITOR
editor = params[:editor] || @user.preferred_editor || DEFAULT_EDITOR
if editor == "josm"
render :action => :index