]> source.dussan.org Git - sonarqube.git/commitdiff
fix loading of results in project permissions page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 16:07:00 +0000 (17:07 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 3 Feb 2016 17:12:14 +0000 (18:12 +0100)
server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js

index ebcd7ff2cc48bda44f6f2796a878b9e45a9989bc..f6710b3f07489e366b41392a0c6578c36239a8a7 100644 (file)
@@ -28,12 +28,17 @@ export default React.createClass({
     loadMore: React.PropTypes.func.isRequired
   },
 
+  handleLoadMore (e) {
+    e.preventDefault();
+    this.props.loadMore();
+  },
+
   render() {
     if (this.props.componentId) {
       return null;
     }
     let hasMore = this.props.total > this.props.count;
-    let loadMoreLink = <a onClick={this.props.loadMore} className="spacer-left" href="#">show more</a>;
+    let loadMoreLink = <a onClick={this.handleLoadMore} className="spacer-left" href="#">show more</a>;
     let className = classNames('spacer-top note text-center', { 'new-loading': !this.props.ready });
     return (
         <footer className={className}>