Changeset 665 for trunk


Ignore:
Timestamp:
01/16/07 05:22:26 (13 years ago)
Author:
gogo
Message:

Small fix, iframe may not exist when panel modifications are done, so
catch the exception on the scrolling and ignore it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r664 r665  
    20422042    panel.style.display = 'none'; 
    20432043    this.notifyOf('panel_change', {'action':'hide','panel':panel}); 
    2044     this.scrollToElement(); 
     2044    try { this.scrollToElement(); } catch(e) { } 
    20452045  } 
    20462046}; 
     
    20522052    panel.style.display = '';     
    20532053    this.notifyOf('panel_change', {'action':'show','panel':panel}); 
    2054     this.scrollToElement(); 
     2054    try { this.scrollToElement(); } catch(e) { } 
    20552055  } 
    20562056}; 
Note: See TracChangeset for help on using the changeset viewer.