Commit a0ce88c504dbf75d857f56956a3a801e396bfc46

Authored by Caio Almeida
1 parent 43ec2b85

Fixing bug on comment creation

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 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 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 <name>#3ConfJuv</name> 3 <name>#3ConfJuv</name>
4 <description>Aplicativo móvel para 3ª Conferência Nacional de Juventude</description> 4 <description>Aplicativo móvel para 3ª Conferência Nacional de Juventude</description>
5 <author email="confjuvapp@gmail.com" href="http://www.juventude.gov.br/"></author> 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 +7,7 @@
7 </h1> 7 </h1>
8 8
9 <label class="item item-input"> 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 </label> 11 </label>
12 12
13 <p class="text-center"> 13 <p class="text-center">
ConfJuvApp/www/js/controllers.js
@@ -474,11 +474,11 @@ angular.module(&#39;confjuvapp.controllers&#39;, []) @@ -474,11 +474,11 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
474 $scope.proposal = proposal; 474 $scope.proposal = proposal;
475 475
476 if (!$scope.proposal.comments || $scope.proposal.comments.length == 0) { 476 if (!$scope.proposal.comments || $scope.proposal.comments.length == 0) {
477 - loadComments(); 477 + $scope.loadComments();
478 } 478 }
479 479
480 else { 480 else {
481 - showProposal($scope.proposal); 481 + $scope.showProposal($scope.proposal);
482 } 482 }
483 }; 483 };
484 484
@@ -633,7 +633,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, []) @@ -633,7 +633,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
633 } 633 }
634 else { 634 else {
635 // Initiate the modal 635 // Initiate the modal
636 - $ionicModal.fromTemplateUrl('html/_create_comment.html?6', { 636 + $ionicModal.fromTemplateUrl('html/_create_comment.html?7', {
637 scope: $scope, 637 scope: $scope,
638 animation: 'slide-in-up' 638 animation: 'slide-in-up'
639 }).then(function(modal) { 639 }).then(function(modal) {
@@ -879,7 +879,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, []) @@ -879,7 +879,7 @@ angular.module(&#39;confjuvapp.controllers&#39;, [])
879 L O A D C O M M E N T S 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 $scope.commentStatus = ''; 883 $scope.commentStatus = '';
884 $scope.loading = true; 884 $scope.loading = true;
885 var config = { 885 var config = {