Commit 243d648031c39e82efb10b6008313150171af2ce
1 parent
f226f73d
Exists in
colab_tag_merge
Added limit of feed and fixed parameters from url
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
colab/plugins/noosfero/static/noosfero/js/colab_integration.js
| @@ -13,7 +13,8 @@ function feed_gitlab_tag() | @@ -13,7 +13,8 @@ function feed_gitlab_tag() | ||
| 13 | var url = $(location).attr('pathname'); | 13 | var url = $(location).attr('pathname'); |
| 14 | var regex = new RegExp(/\/social\/(.+)\//g); | 14 | var regex = new RegExp(/\/social\/(.+)\//g); |
| 15 | var community = regex.exec(url)[1]; | 15 | var community = regex.exec(url)[1]; |
| 16 | - var request_path = '/spb/feed_repository/'+'?group=software-publico&project=colab'; | 16 | + var limit = '7'; |
| 17 | + var request_path = '/spb/feed_repository/'+'?group='+community+'&limit='+limit; | ||
| 17 | tag.load(request_path) | 18 | tag.load(request_path) |
| 18 | } | 19 | } |
| 19 | 20 | ||
| @@ -24,6 +25,6 @@ function discussion_tag() | @@ -24,6 +25,6 @@ function discussion_tag() | ||
| 24 | var regex = new RegExp(/\/social\/(.+)\//g); | 25 | var regex = new RegExp(/\/social\/(.+)\//g); |
| 25 | var community = regex.exec(url)[1]; | 26 | var community = regex.exec(url)[1]; |
| 26 | var MAX = '7'; | 27 | var MAX = '7'; |
| 27 | - var request_path = '/spb/get_list/'+'?list_name=ListA'+'&'+'MAX='+MAX; | 28 | + var request_path = '/spb/get_list/'+'?list_name='+community+'&MAX='+MAX; |
| 28 | tag.load(request_path); | 29 | tag.load(request_path); |
| 29 | } | 30 | } |