Ticket #5314: 5314.patch

File 5314.patch, 1.2 KB (added by Frederico Caldeira Knabben, 13 years ago)
  • _source/plugins/listblock/plugin.js

     
    201201
    202202                                        unmark : function( value )
    203203                                        {
    204                                                 this.element.getDocument().getById( this._.items[ value ] ).removeClass( 'cke_selected' );
    205                                                 this.onUnmark && this.onUnmark( this._.items[ value ] );
     204                                                var doc = this.element.getDocument(),
     205                                                        itemId = this._.items[ value ],
     206                                                        item = doc.getById( itemId );
     207
     208                                                item.removeClass( 'cke_selected' );
     209                                                doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
     210
     211                                                this.onUnmark && this.onUnmark( item );
    206212                                        },
    207213
    208214                                        unmarkAll : function()
     
    212218
    213219                                                for ( var value in items )
    214220                                                {
    215                                                         doc.getById( items[ value ] ).removeClass( 'cke_selected' );
     221                                                        var itemId = items[ value ];
     222
     223                                                        doc.getById( itemId ).removeClass( 'cke_selected' );
     224                                                        doc.getById( itemId + '_option' ).removeAttribute( 'aria-selected' );
    216225                                                }
    217226
    218227                                                this.onUnmark && this.onUnmark();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy