From: Jean-Philippe Lang Date: Sun, 20 Jan 2008 17:36:01 +0000 (+0000) Subject: Added tabindex property on wiki toolbar buttons and 'new category' link. X-Git-Tag: 0.7.0-RC1~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5b9dedca2298e8b95bbb8ac309ddfe8454a8c76;p=redmine.git Added tabindex property on wiki toolbar buttons and 'new category' link. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1087 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml index d91effedf..0f5e10de9 100644 --- a/app/views/issues/_form.rhtml +++ b/app/views/issues/_form.rhtml @@ -21,7 +21,7 @@ <%= prompt_to_remote(l(:label_issue_category_new), l(:label_issue_category_new), 'category[name]', {:controller => 'projects', :action => 'add_issue_category', :id => @project}, - :class => 'small') if authorize_for('projects', 'add_issue_category') %>

+ :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %>

diff --git a/public/javascripts/jstoolbar/jstoolbar.js b/public/javascripts/jstoolbar/jstoolbar.js index 65f25bac1..7941bd135 100644 --- a/public/javascripts/jstoolbar/jstoolbar.js +++ b/public/javascripts/jstoolbar/jstoolbar.js @@ -81,6 +81,7 @@ jsButton.prototype.draw = function() { var button = document.createElement('button'); button.setAttribute('type','button'); + button.tabIndex = 200; if (this.className) button.className = this.className; button.title = this.title; var span = document.createElement('span');