aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-03 17:07:00 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-03 18:12:14 +0100
commit073a360bee8214fc91da28295c6e22efbff57e60 (patch)
tree5be3ee5a8ac5c3da8300572a89f14327154759d5 /server
parent3d1d9735f28467d1cb352d4fcbf6b6c7b1a5ce9a (diff)
downloadsonarqube-073a360bee8214fc91da28295c6e22efbff57e60.tar.gz
sonarqube-073a360bee8214fc91da28295c6e22efbff57e60.zip
fix loading of results in project permissions page
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js b/server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js
index ebcd7ff2cc4..f6710b3f074 100644
--- a/server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js
+++ b/server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js
@@ -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}>