Changeset 1056 for trunk


Ignore:
Timestamp:
10/04/08 00:26:54 (10 years ago)
Author:
ray
Message:

#1280 restoreSelection doesn't always work in internet explorer

Location:
trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Dialogs/XinhaDialog.js

    r1044 r1056  
    478478    } 
    479479  } 
    480    // Restore the selection --> should this happen only with modals? 
    481   this.editor.restoreSelection(this._lastRange); 
     480 
     481  if (this.modal) 
     482  { 
     483    this.editor.restoreSelection(this._lastRange); 
     484  } 
    482485   
    483486  this.dialogShown = false; 
  • trunk/modules/InternetExplorer/InternetExplorer.js

    r1051 r1056  
    451451Xinha.prototype.restoreSelection = function(savedSelection) 
    452452{ 
     453  if (!savedSelection) return; 
    453454  // In order to prevent triggering the IE bug mentioned below, we will try to 
    454455  // optimize by not restoring the selection if it happens to match the current 
Note: See TracChangeset for help on using the changeset viewer.