Changeset 4897
- Timestamp:
- 01/07/10 10:58:18 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/plugins/richcombo/plugin.js
r4896 r4897 166 166 '<span id="' + id+ '_label" class=cke_label>', this.label, '</span>' + 167 167 '<a hidefocus=true title="', this.title, '" tabindex="-1" href="javascript:void(\'', this.label, '\')"' + 168 ' role="button" aria-labelledby="', id , '_label"' );168 ' role="button" aria-labelledby="', id , '_label" aria-describedby="', id, '_text"' ); 169 169 170 170 // Some browsers don't cancel key events in the keydown but in the … … 282 282 this._.value = value; 283 283 284 var element = this.document.getById( 'cke_' + this.id ) 285 .getElementsByTag( 'a' ).getItem( 0 ), 286 textElement = this.document.getById( 'cke_' + this.id + '_text' ); 284 var textElement = this.document.getById( 'cke_' + this.id + '_text' ); 287 285 288 286 if ( !( value || text ) ) … … 293 291 else 294 292 textElement.removeClass( 'cke_inline_label' ); 293 295 294 textElement.setHtml( typeof text != 'undefined' ? text : value ); 296 297 // Update link 'tilte' to represent the currectly selected combo value.298 element.setAttribute( 'title', typeof text != 'undefined' ? text : value );299 295 }, 300 296
Note: See TracChangeset
for help on using the changeset viewer.
