JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / plugins / a11yhelp / dialogs / a11yhelp.js
index 3348f93..4b7c34c 100644 (file)
@@ -6,7 +6,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 CKEDITOR.dialog.add( 'a11yHelp', function( editor )\r
 {\r
        var lang = editor.lang.accessibilityHelp,\r
-               id = CKEDITOR.tools.getNextNumber();\r
+               id = CKEDITOR.tools.getNextId();\r
 \r
        // CharCode <-> KeyChar.\r
        var keyMap =\r
@@ -125,8 +125,8 @@ CKEDITOR.dialog.add( 'a11yHelp', function( editor )
        // Create the help list directly from lang file entries.\r
        function buildHelpContents()\r
        {\r
-               var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="cke_' + id + '_arialbl" tabIndex="-1">%1</div>' +\r
-                               '<span id="cke_' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>',\r
+               var pageTpl = '<div class="cke_accessibility_legend" role="document" aria-labelledby="' + id + '_arialbl" tabIndex="-1">%1</div>' +\r
+                               '<span id="' + id + '_arialbl" class="cke_voice_label">' + lang.contents + ' </span>',\r
                        sectionTpl = '<h1>%1</h1><dl>%2</dl>',\r
                        itemTpl = '<dt>%1</dt><dd>%2</dd>';\r
 \r