Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -86,19 +86,19 @@ |
87 | 87 | return false; |
88 | 88 | } ); |
89 | 89 | $( '.articleFeedbackv5-sort-link' ).bind( 'click', function( e ) { |
90 | | - id = $.articleFeedbackv5special.stripID( this, 'articleFeedbackv5-special-sort-' ); |
91 | | - oldId = $.articleFeedbackv5special.sort; |
| 90 | + id = $.articleFeedbackv5special.stripID( this, 'articleFeedbackv5-special-sort-' ); |
| 91 | + oldId = $.articleFeedbackv5special.sort; |
92 | 92 | |
93 | 93 | // set direction = desc... |
94 | | - $.articleFeedbackv5special.sortDirection = 'desc'; |
95 | 94 | $.articleFeedbackv5special.sort = id; |
96 | 95 | $.articleFeedbackv5special.continue = null; |
97 | 96 | |
98 | 97 | // unless we're flipping the direction on the current sort. |
99 | | - if( id == oldId |
100 | | - && $.articleFeedbackv5special.sortDirection == 'desc') { |
| 98 | + if( id == oldId && $.articleFeedbackv5special.sortDirection == 'desc' ) { |
101 | 99 | $.articleFeedbackv5special.sortDirection = 'asc'; |
102 | | - } |
| 100 | + } else { |
| 101 | + $.articleFeedbackv5special.sortDirection = 'desc'; |
| 102 | + } |
103 | 103 | |
104 | 104 | $.articleFeedbackv5special.loadFeedback( true ); |
105 | 105 | // draw arrow and load feedback posts |