/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
function renderColors( panel, type, colorBoxId )\r
{\r
var output = [],\r
- colors = config.colorButton_colors.split( ',' ),\r
- total = colors.length + ( config.colorButton_enableMore ? 2 : 1 );\r
+ colors = config.colorButton_colors.split( ',' );\r
\r
var clickFn = CKEDITOR.tools.addFunction( function( color, type )\r
{\r
' title="', lang.auto, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' +\r
' href="javascript:void(\'', lang.auto, '\')"' +\r
- ' role="option" aria-posinset="1" aria-setsize="', total, '">' +\r
+ ' role="option">' +\r
'<table role="presentation" cellspacing=0 cellpadding=0 width="100%">' +\r
'<tr>' +\r
'<td>' +\r
' title="', colorLabel, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'', colorName, '\',\'', type, '\'); return false;"' +\r
' href="javascript:void(\'', colorLabel, '\')"' +\r
- ' role="option" aria-posinset="', ( i + 2 ), '" aria-setsize="', total, '">' +\r
+ ' role="option">' +\r
'<span class="cke_colorbox" style="background-color:#', colorCode, '"></span>' +\r
'</a>' +\r
'</td>' );\r
' title="', lang.more, '"' +\r
' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'?\',\'', type, '\');return false;"' +\r
' href="javascript:void(\'', lang.more, '\')"',\r
- ' role="option" aria-posinset="', total, '" aria-setsize="', total, '">',\r
+ ' role="option">',\r
lang.more,\r
'</a>' +\r
'</td>' ); // tr is later in the code.\r