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
This commit is contained in:
Jean-Philippe Lang 2008-01-20 17:36:01 +00:00
parent 0b4a02f607
commit d5b9dedca2
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<%= prompt_to_remote(l(:label_issue_category_new), <%= prompt_to_remote(l(:label_issue_category_new),
l(:label_issue_category_new), 'category[name]', l(:label_issue_category_new), 'category[name]',
{:controller => 'projects', :action => 'add_issue_category', :id => @project}, {:controller => 'projects', :action => 'add_issue_category', :id => @project},
:class => 'small') if authorize_for('projects', 'add_issue_category') %></p> :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
</div> </div>
<div class="splitcontentright"> <div class="splitcontentright">

View File

@ -81,6 +81,7 @@ jsButton.prototype.draw = function() {
var button = document.createElement('button'); var button = document.createElement('button');
button.setAttribute('type','button'); button.setAttribute('type','button');
button.tabIndex = 200;
if (this.className) button.className = this.className; if (this.className) button.className = this.className;
button.title = this.title; button.title = this.title;
var span = document.createElement('span'); var span = document.createElement('span');