Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | return true; |
312 | 312 | } else { |
313 | 313 | var $tabindexList = $j( '[tabindex]:visible' ).sort( function( a, b ) { |
314 | | - return a.tabIndex > b.tabIndex ? 1 : -1; |
| 314 | + return a.tabIndex - b.tabIndex; |
315 | 315 | } ); |
316 | 316 | for( var i=0; i < $tabindexList.length; i++ ) { |
317 | 317 | if( $tabindexList.eq( i ).attr('id') == context.$iframe.attr( 'id' ) ) { |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -6743,7 +6743,7 @@ |
6744 | 6744 | return true; |
6745 | 6745 | } else { |
6746 | 6746 | var $tabindexList = $j( '[tabindex]:visible' ).sort( function( a, b ) { |
6747 | | - return a.tabIndex > b.tabIndex ? 1 : -1; |
| 6747 | + return a.tabIndex - b.tabIndex; |
6748 | 6748 | } ); |
6749 | 6749 | for( var i=0; i < $tabindexList.length; i++ ) { |
6750 | 6750 | if( $tabindexList.eq( i ).attr('id') == context.$iframe.attr( 'id' ) ) { |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -447,7 +447,7 @@ |
448 | 448 | if('fn'in $.wikiEditor.modules[module]&&'create'in $.wikiEditor.modules[module].fn){context.modules[module]={};$.wikiEditor.modules[module].fn.create(context,modules[module]);}}}}};context.evt={'keydown':function(event){switch(event.which){case 90:if((event.ctrlKey||event.metaKey)&&context.history.length){if(event.shiftKey){context.historyPosition++;}else{context.historyPosition--;} |
449 | 449 | if(context.history.length+context.historyPosition>=0&&context.historyPosition<0){context.$content.html(context.history[context.history.length+context.historyPosition].html);}else{context.historyPosition=Math.max(-context.history.length,Math.min(context.historyPosition,-1));} |
450 | 450 | return false;} |
451 | | -break;case 9:if(event.ctrlKey||event.altKey||event.shiftKey){return true;}else{var $tabindexList=$j('[tabindex]:visible').sort(function(a,b){return a.tabIndex>b.tabIndex?1:-1;});for(var i=0;i<$tabindexList.length;i++){if($tabindexList.eq(i).attr('id')==context.$iframe.attr('id')){$tabindexList.get(i+1).focus();break;}} |
| 451 | +break;case 9:if(event.ctrlKey||event.altKey||event.shiftKey){return true;}else{var $tabindexList=$j('[tabindex]:visible').sort(function(a,b){return a.tabIndex-b.tabIndex;});for(var i=0;i<$tabindexList.length;i++){if($tabindexList.eq(i).attr('id')==context.$iframe.attr('id')){$tabindexList.get(i+1).focus();break;}} |
452 | 452 | return false;} |
453 | 453 | break;case 86:if(event.ctrlKey){context.evt.paste(event);} |
454 | 454 | break;} |