Ticket #5314: 5314.patch
File 5314.patch, 1.2 KB (added by , 12 years ago) |
---|
-
_source/plugins/listblock/plugin.js
201 201 202 202 unmark : function( value ) 203 203 { 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 ); 206 212 }, 207 213 208 214 unmarkAll : function() … … 212 218 213 219 for ( var value in items ) 214 220 { 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' ); 216 225 } 217 226 218 227 this.onUnmark && this.onUnmark();