Changeset 488 in subversion
- Timestamp:
- Feb 21, 2007 3:34:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r486 r488 2586 2586 } 2587 2587 2588 this.sort_subscription_list(); 2588 2589 }; 2589 2590 … … 2734 2735 }; 2735 2736 2737 // sort subscription folder list 2738 this.sort_subscription_list = function() 2739 { 2740 var tbody = this.gui_objects.subscriptionlist.tBodies[0]; 2741 for (var i = 0; i<(tbody.childNodes.length-1); i++) 2742 { 2743 if (this.env.subscriptionrows[tbody.childNodes[i].id]!=null) 2744 { 2745 var swapped = false; 2746 for (var j = i+1; j<(tbody.childNodes.length); j++) 2747 { 2748 if ((this.env.subscriptionrows[tbody.childNodes[j].id]!=null) && 2749 (this.env.subscriptionrows[tbody.childNodes[i].id][0]> 2750 this.env.subscriptionrows[tbody.childNodes[j].id][0])) 2751 { 2752 var swap = tbody.replaceChild(tbody.childNodes[i], tbody.childNodes[j]); 2753 if (typeof(tbody.childNodes[i]) != 'undefined') 2754 tbody.insertBefore(swap, tbody.childNodes[i]) 2755 else 2756 tbody.appendChild(swap); 2757 swapped = true; 2758 } 2759 } 2760 } 2761 } 2762 }; 2763 2736 2764 2737 2765 /*********************************************************/
Note: See TracChangeset
for help on using the changeset viewer.
