Changeset 15020
- Timestamp:
- 03/03/10 18:56:07 (2 years ago)
- Location:
- trunk/Xul_Core/content/scenariCore/widgets/matrix
- Files:
-
- 2 edited
-
matrix.xbl.xml (modified) (4 diffs)
-
slotContents.xbl.xml (modified) (3 diffs)
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; -
trunk/Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml
r15018 r15020 105 105 var vTab = this.fTabsContainer.firstElementChild; 106 106 while(vTab) { 107 vTab.closeTab();107 if( ! vTab.closeTab()) return; 108 108 vTab = this.fTabsContainer.firstElementChild; 109 109 } … … 121 121 var vTab = pCurrentTab.nextElementSibling; 122 122 while(vTab) { 123 vTab.closeTab();123 if( ! vTab.closeTab()) return; 124 124 vTab = pCurrentTab.nextElementSibling; 125 125 } … … 127 127 while(vTab) { 128 128 var vPrvTab = vTab.previousElementSibling; 129 vTab.closeTab();129 if( ! vTab.closeTab()) return; 130 130 vTab = vPrvTab; 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.