- Timestamp:
- 03/03/10 18:56:07 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml
r15018 r15020 172 172 vSelectedIndex++; 173 173 } 174 //if(val && val.getAttribute("closed")=="true") val.openView();175 174 if(this.fDeck.selectedIndex != vSelectedIndex) { 176 175 //L'index dans le desk a changé. … … 655 654 try { 656 655 if(this.fView) { 657 this.fView.closeView();656 return this.fView.closeView(); 658 657 } else { 659 658 //Onglet sans view, curieux, on redraw les onglets. 659 log.debug("XXX tab with no view ?"); 660 660 this.fSlot.selectedView = this.fSlot.searchPreviousSelectedView(); 661 return true; 661 662 } 662 663 }catch(e){ … … 732 733 <body><![CDATA[ 733 734 if(this.getAttribute("closed")=="true") return true; 734 if( ! this.canUnload(false)) return false; 735 if( ! this.canUnload(true)) { 736 //On s'assure qu'on détient le focus. 737 this.fSlot.selectedView = this; 738 if( ! this.canUnload(false)) return false; 739 } 735 740 this.setAttribute("closed", "true"); 736 741 this.onDefinitionUpdates(); … … 744 749 <method name="closeViewByRemove"> 745 750 <body><![CDATA[ 746 if( ! this.canUnload(false)) return false; 751 if( ! this.canUnload(true)) { 752 //On s'assure qu'on détient le focus. 753 this.fSlot.selectedView = this; 754 if( ! this.canUnload(false)) return false; 755 } 747 756 var vSlot = this.fSlot; 748 757 var vOldViewSel = vSlot.selectedView;
Note: See TracChangeset
for help on using the changeset viewer.