Commit 9d9ef881f312773feebb7051fed0ab10c564077a
1 parent
a9b10da6
Exists in
master
and in
2 other branches
Ticket #38
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
ConfJuvApp/www/html/_create_proposal.html
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | </label> | 23 | </label> |
24 | 24 | ||
25 | <p class="text-center"> | 25 | <p class="text-center"> |
26 | - <button onclick="this.innerHTML='Criando...'" ripple class="button" type="submit">Salvar</button> | 26 | + <button onclick="this.innerHTML='Criando...'" ripple class="button" type="submit" id="save-proposal">Salvar</button> |
27 | </p> | 27 | </p> |
28 | </form> | 28 | </form> |
29 | </ion-content> | 29 | </ion-content> |
ConfJuvApp/www/js/controllers.js
@@ -439,7 +439,7 @@ angular.module('confjuvapp.controllers', []) | @@ -439,7 +439,7 @@ angular.module('confjuvapp.controllers', []) | ||
439 | else { | 439 | else { |
440 | // Initiate the modal | 440 | // Initiate the modal |
441 | $scope.loadStates(); | 441 | $scope.loadStates(); |
442 | - $ionicModal.fromTemplateUrl('html/_create_proposal.html?10', { | 442 | + $ionicModal.fromTemplateUrl('html/_create_proposal.html?11', { |
443 | scope: $scope, | 443 | scope: $scope, |
444 | animation: 'slide-in-up' | 444 | animation: 'slide-in-up' |
445 | }).then(function(modal) { | 445 | }).then(function(modal) { |
@@ -518,11 +518,13 @@ angular.module('confjuvapp.controllers', []) | @@ -518,11 +518,13 @@ angular.module('confjuvapp.controllers', []) | ||
518 | $scope.proposalsByTopic[data.topic_id.id].push(proposal); | 518 | $scope.proposalsByTopic[data.topic_id.id].push(proposal); |
519 | $scope.loading = false; | 519 | $scope.loading = false; |
520 | $scope.data.title = $scope.data.description = $scope.data.topic_id = null; | 520 | $scope.data.title = $scope.data.description = $scope.data.topic_id = null; |
521 | + document.getElementById('save-proposal').innerHTML = 'Salvar'; | ||
521 | }); | 522 | }); |
522 | }, function(err) { | 523 | }, function(err) { |
523 | $scope.closeProposalModal(); | 524 | $scope.closeProposalModal(); |
524 | var popup = $ionicPopup.alert({ title: 'Criar proposta', template: 'Erro ao criar proposta!' }); | 525 | var popup = $ionicPopup.alert({ title: 'Criar proposta', template: 'Erro ao criar proposta!' }); |
525 | $scope.loading = false; | 526 | $scope.loading = false; |
527 | + document.getElementById('save-proposal').innerHTML = 'Salvar'; | ||
526 | popup.then(function() { | 528 | popup.then(function() { |
527 | $scope.openCreateProposalForm(); | 529 | $scope.openCreateProposalForm(); |
528 | }); | 530 | }); |