Permalink
Browse files

Add sample for loading gif for version 0.4.1

  • Loading branch information...
1 parent 91446c5 commit 5892ceb3fcf36a512ed490442b5b5c720648879d Amit Jain committed Jan 9, 2013
@@ -32,6 +32,6 @@ grails.project.dependency.resolution = {
}
plugins{
- compile ':remote-pagination:0.4'
+ compile ':remote-pagination:0.4.1'
}
}
@@ -8,6 +8,7 @@ class ContentController {
}
def filter = {
+ Thread.sleep(1000)
render(template: 'filter', model: [contents: Content.list(params), total: Content.count()])
}
}
@@ -4,4 +4,4 @@
</fieldset>
</g:each>
-<util:remoteNonStopPageScroll action='filter' controller="content" total="${total}" update="content" />
+<util:remoteNonStopPageScroll action='filter' controller="content" total="${total}" update="content" loadingHTML="loadingDivId"/>
@@ -66,6 +66,7 @@
<div class="list" id="content">
<g:render template="filter"/>
</div>
+ <div id="loadingDivId" style="display: none;"><img src="${resource(dir:'images', file:'loading.png')}" alt=""/></div>
</div>
</body>
</html>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5892ceb

Please sign in to comment.