Commit a0ee516a07416fd8ce4d1933262c886213d8d043
Exists in
master
and in
6 other branches
Merge branch 'fix-issues'
Showing
5 changed files
with
24 additions
and
6 deletions
Show diff stats
src/app/components/article-service/article.service.js
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | apiArticles: $rootScope.basePath + '/api/v1/articles/', |
14 | 14 | apiCommunities: $rootScope.basePath + '/api/v1/communities/', |
15 | 15 | apiProposals: $rootScope.basePath + '/api/v1/proposals_discussion_plugin/', |
16 | + apiSearch: $rootScope.basePath + '/api/v1/search/', | |
16 | 17 | getArticleById: getArticleById, |
17 | 18 | getArticleBySlug: getArticleBySlug, |
18 | 19 | getCategories: getCategories, |
... | ... | @@ -234,7 +235,7 @@ |
234 | 235 | |
235 | 236 | function searchTopics (params, cbSuccess, cbError) { |
236 | 237 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Topic&query=cisternas |
237 | - var url = '/api/v1/search/article'; | |
238 | + var url = service.apiSearch + '/article'; | |
238 | 239 | var paramsExtended = angular.extend({ |
239 | 240 | // 'fields[]': ['id', 'title', 'slug', 'abstract', 'categories', 'setting', 'children_count', 'hits'], |
240 | 241 | 'type': 'ProposalsDiscussionPlugin::Topic' |
... | ... | @@ -249,7 +250,7 @@ |
249 | 250 | |
250 | 251 | function searchProposals (params, cbSuccess, cbError) { |
251 | 252 | // Ex.: /api/v1/search/article?type=ProposalsDiscussionPlugin::Proposal&query=cisternas |
252 | - var url = '/api/v1/search/article'; | |
253 | + var url = service.apiSearch + '/article'; | |
253 | 254 | var paramsExtended = angular.extend({ |
254 | 255 | page: 1, |
255 | 256 | per_page: 20, | ... | ... |
src/app/components/cadastro-proposta/cadastro-proposta.html
... | ... | @@ -21,10 +21,16 @@ |
21 | 21 | <div class="col-sm-8"> |
22 | 22 | <label for="proposta-textarea">Descrição da proposta*</label> |
23 | 23 | <a tabindex="0" class="btn btn-link btn-question" role="button" data-toggle="popover" data-trigger="focus">?</a> |
24 | - <textarea id="proposta-textarea" name="proposta" class="texto-proposta form-control" | |
24 | + <textarea | |
25 | + id="proposta-textarea" | |
26 | + name="proposta" | |
27 | + class="texto-proposta form-control" | |
25 | 28 | ng-class="{ 'has-error' : formPropostas.proposta.$invalid && formPropostas.proposta.$touched }" |
26 | 29 | ng-model="proposta" |
27 | - required ng-maxlength="200" ></textarea> | |
30 | + ng-trim="false" | |
31 | + ng-maxlength="200" | |
32 | + maxlength="200" | |
33 | + required></textarea> | |
28 | 34 | <validation-messages field="formPropostas.proposta" maxlength="'Ops, esse campo não pode ser maior que 200 caracteres.'"></validation-messages> |
29 | 35 | <div class="row"> |
30 | 36 | <div class="col-xs-6"> |
... | ... | @@ -32,6 +38,7 @@ |
32 | 38 | </div> |
33 | 39 | <div class="col-xs-6 text-right"> |
34 | 40 | <span>Máx. 200 caracteres</span> |
41 | + <span ng-if="proposta.length > 0">(restam {{(200 - proposta.length)}} caracteres)</span> | |
35 | 42 | </div> |
36 | 43 | </div> |
37 | 44 | </div> | ... | ... |
src/app/components/proposal-carousel/proposal-carousel.html
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 | <div class="proposal-carousel-top-triggers" ng-if="vm.proposals"> |
9 | 9 | <ul class="list-inline"> |
10 | 10 | <li class="item-dot" ng-repeat="proposal in vm.proposals"> |
11 | - <button type="button" ng-class="{'active': vm.activeIndex === $index}" ng-click="vm.switchProposal($index)" title="Apersentar proposta na posição {{$index}}"></button> | |
11 | + <button type="button" ng-class="{'active': vm.activeIndex === $index}" ng-click="vm.switchProposal($index)" title="Apersentar proposta {{ ( $index + 1 ) }}"></button> | |
12 | 12 | </li> |
13 | 13 | </ul> |
14 | 14 | </div> | ... | ... |
src/app/pages/programas/programas.scss
... | ... | @@ -81,9 +81,19 @@ |
81 | 81 | .program-preview--share { |
82 | 82 | margin-bottom: 20px; |
83 | 83 | position: relative; |
84 | + | |
84 | 85 | .dropdown { |
85 | 86 | display: inline-block; |
86 | 87 | position: relative; |
88 | + | |
89 | + @media screen and (max-width: $screen-xs) { | |
90 | + display: block; | |
91 | + | |
92 | + .dropdown-menu-right { | |
93 | + left: 0; | |
94 | + right: auto; | |
95 | + } | |
96 | + } | |
87 | 97 | } |
88 | 98 | |
89 | 99 | .dropdown-menu { | ... | ... |