Ticket #4773: ie select fix.patch
File ie select fix.patch, 1.3 KB (added by , 13 years ago) |
---|
-
ui.core.js
161 161 return this 162 162 .attr('unselectable', 'off') 163 163 .css('MozUserSelect', '') 164 .unbind('selectstart.ui'); 164 .unbind('selectstart.ui') 165 .unbind('selectstart.disableTextSelect'); //ie select enable 165 166 }, 166 167 167 168 disableSelection: function() { 168 169 return this 169 170 .attr('unselectable', 'on') 170 171 .css('MozUserSelect', 'none') 171 .bind('selectstart.ui', function() { return false; }); 172 .bind('selectstart.ui', function() { return false; }) 173 .bind('selectstart.disableTextSelect', function() { return false; }); //ie select disable 172 174 }, 173 175 174 176 scrollParent: function() { … … 413 415 } 414 416 }); 415 417 416 // Prevent text selection in IE417 if ($.browser.msie) {418 this._mouseUnselectable = this.element.attr('unselectable');419 this.element.attr('unselectable', 'on');420 }421 422 418 this.started = false; 423 419 }, 424 420 … … 426 422 // other instances of mouse 427 423 _mouseDestroy: function() { 428 424 this.element.unbind('.'+this.widgetName); 429 430 // Restore text selection in IE431 ($.browser.msie432 && this.element.attr('unselectable', this._mouseUnselectable));433 425 }, 434 426 435 427 _mouseDown: function(event) {