Commit a0ce88c504dbf75d857f56956a3a801e396bfc46
1 parent
43ec2b85
Exists in
master
and in
2 other branches
Fixing bug on comment creation
Showing
6 changed files
with
6 additions
and
6 deletions
Show diff stats
ConfJuvApp/builds/confjuv-dev.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-live.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-web.zip
No preview for this file type
ConfJuvApp/config.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
2 | -<widget id="com.ionicframework.confjuvapp748431" version="0.0.24" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
2 | +<widget id="com.ionicframework.confjuvapp748431" version="0.0.25" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
3 | 3 | <name>#3ConfJuv</name> |
4 | 4 | <description>Aplicativo móvel para 3ª Conferência Nacional de Juventude</description> |
5 | 5 | <author email="confjuvapp@gmail.com" href="http://www.juventude.gov.br/"></author> | ... | ... |
ConfJuvApp/www/html/_create_comment.html
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | </h1> |
8 | 8 | |
9 | 9 | <label class="item item-input"> |
10 | - <textarea placeholder="Comentário" ng-model="data.comment" rows="10"></textarea> | |
10 | + <textarea placeholder="Comentário" ng-model="data.comment" rows="5"></textarea> | |
11 | 11 | </label> |
12 | 12 | |
13 | 13 | <p class="text-center"> | ... | ... |
ConfJuvApp/www/js/controllers.js
... | ... | @@ -474,11 +474,11 @@ angular.module('confjuvapp.controllers', []) |
474 | 474 | $scope.proposal = proposal; |
475 | 475 | |
476 | 476 | if (!$scope.proposal.comments || $scope.proposal.comments.length == 0) { |
477 | - loadComments(); | |
477 | + $scope.loadComments(); | |
478 | 478 | } |
479 | 479 | |
480 | 480 | else { |
481 | - showProposal($scope.proposal); | |
481 | + $scope.showProposal($scope.proposal); | |
482 | 482 | } |
483 | 483 | }; |
484 | 484 | |
... | ... | @@ -633,7 +633,7 @@ angular.module('confjuvapp.controllers', []) |
633 | 633 | } |
634 | 634 | else { |
635 | 635 | // Initiate the modal |
636 | - $ionicModal.fromTemplateUrl('html/_create_comment.html?6', { | |
636 | + $ionicModal.fromTemplateUrl('html/_create_comment.html?7', { | |
637 | 637 | scope: $scope, |
638 | 638 | animation: 'slide-in-up' |
639 | 639 | }).then(function(modal) { |
... | ... | @@ -879,7 +879,7 @@ angular.module('confjuvapp.controllers', []) |
879 | 879 | L O A D C O M M E N T S |
880 | 880 | ******************************************************************************/ |
881 | 881 | |
882 | - var loadComments = function() { | |
882 | + $scope.loadComments = function() { | |
883 | 883 | $scope.commentStatus = ''; |
884 | 884 | $scope.loading = true; |
885 | 885 | var config = { | ... | ... |