Index: trunk/extensions/Storyboard/tags/Storyboard/storyboard.js |
— | — | @@ -9,13 +9,17 @@ |
10 | 10 | $( document ).ready( function() { |
11 | 11 | $( '.storyboard' ).ajaxScroll( { |
12 | 12 | updateBatch: updateStoryboard, |
| 13 | + maxOffset: 500, |
13 | 14 | batchSize: 4, |
14 | | - batchNum: 2 |
| 15 | + batchNum: 2, |
| 16 | + batchClass: "batch", |
| 17 | + boxClass: "storyboard-box", |
| 18 | + emptyBatchClass: "storyboard-empty", |
| 19 | + scrollPaneClass: "scrollpane" |
15 | 20 | } ); |
16 | 21 | } ); |
17 | 22 | |
18 | 23 | function updateStoryboard( $storyboard ) { |
19 | | - // TODO: fix eternal load, broken when swicthing from .load to .getJSON. |
20 | 24 | $.getJSON( wgScriptPath + '/api.php', |
21 | 25 | { |
22 | 26 | 'action': 'query', |
Index: trunk/extensions/Storyboard/api/ApiQueryStories.php |
— | — | @@ -54,7 +54,8 @@ |
55 | 55 | 'story_author_image', |
56 | 56 | 'story_title', |
57 | 57 | 'story_text', |
58 | | - 'story_created' |
| 58 | + 'story_created', |
| 59 | + 'story_modified' |
59 | 60 | ) ); |
60 | 61 | $this->addWhere( array( |
61 | 62 | 'story_state' => Storyboard_STORY_PUBLISHED |
— | — | @@ -73,11 +74,12 @@ |
74 | 75 | |
75 | 76 | $storyModified = $continueParams[0]; |
76 | 77 | $storyId = intval( $continueParams[1] ); |
77 | | - var_dump($storyModified);exit; |
| 78 | + /* FIXME |
78 | 79 | $this->addWhere( |
79 | 80 | "story_modified > $storyModified OR " . |
80 | 81 | "(story_modified = $storyId AND story_id <= $storyModified)" |
81 | 82 | ); |
| 83 | + */ |
82 | 84 | |
83 | 85 | } |
84 | 86 | |
— | — | @@ -88,7 +90,7 @@ |
89 | 91 | if ( ++$count > $params['limit'] ) { |
90 | 92 | // We've reached the one extra which shows that |
91 | 93 | // there are additional pages to be had. Stop here... |
92 | | - $this->setContinueEnumParameter( 'continue', wfTimestamp( TS_MW, $row->story_modified ) . '-' . $row->story_id ); |
| 94 | + $this->setContinueEnumParameter( 'continue', wfTimestamp( TS_MW, $story->story_modified ) . '-' . $story->story_id ); |
93 | 95 | break; |
94 | 96 | } |
95 | 97 | $res = array( |