Bug Tracker

Changeset 4131

Show
Ignore:
Timestamp:
12/13/07 01:41:22 (1 year ago)
Author:
rdworth
Message:

Fixed #1735 - Addition of stop and start options to UI Selectable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/current/ui.selectable.js

    r4113 r4131  
    136136        }, 
    137137        stop: function(self, ev) { 
     138 
    138139            var options = this.options; 
     140 
     141            $('.ui-unselecting', self.element).each(function() { 
     142                $(this).removeClass('ui-unselecting'); 
     143                $(self.element).triggerHandler("selectableunselected", [ev, { 
     144                    selectable: self.element, 
     145                    unselected: this, 
     146                    options: options 
     147                }], options.unselected); 
     148            }); 
    139149            $('.ui-selecting', self.element).each(function() { 
    140150                $(this).removeClass('ui-selecting').addClass('ui-selected'); 
     
    145155                }], options.selected); 
    146156            }); 
    147             $('.ui-unselecting', self.element).each(function() { 
    148                 $(this).removeClass('ui-unselecting'); 
    149                 $(self.element).triggerHandler("selectableunselected", [ev, { 
    150                     selectable: self.element, 
    151                     unselected: this, 
    152                     options: options 
    153                 }], options.unselected); 
    154             }); 
     157            $(self.element).triggerHandler("selectablestop", [ev, { 
     158                selectable: self.element, 
     159                options: this.options 
     160            }], this.options.stop); 
    155161        }, 
    156162        selecting: function(self, ev, options, selectee) {