Changes between Initial Version and Version 1 of Ticket #10662, comment 2


Ignore:
Timestamp:
Oct 22, 2014, 7:09:33 AM (7 years ago)
Author:
janom
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10662, comment 2

    initial v1  
    11I changed selectmenu javascript... can you please check if my solutions is right?
    22in _refreshMenu: function() i change from this lines:
     3{{{
    34                if ( !options.length ) {
    45                        return;
     
    1011                this.menuInstance.refresh();
    1112                this.menuItems = this.menu.find( "li" ).not( ".ui-selectmenu-optgroup" );
     13}}}
    1214to this lines:
     15{{{
    1316                this._parseOptions( options );
    1417                this._renderMenu( this.menu, this.items );
     
    2124
    2225                this.menuInstance.refresh();
    23 
     26}}}
    2427and in open: function( event ) i change this line:
     28{{{
    2529                if ( !this.menuItems ) {
     30}}}
    2631to this line:
     32{{{
    2733                if ( !this.menuItems || this.menuItems.length==0) {
     34}}}