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 | 23 | </label> |
24 | 24 | |
25 | 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 | 27 | </p> |
28 | 28 | </form> |
29 | 29 | </ion-content> | ... | ... |
ConfJuvApp/www/js/controllers.js
... | ... | @@ -439,7 +439,7 @@ angular.module('confjuvapp.controllers', []) |
439 | 439 | else { |
440 | 440 | // Initiate the modal |
441 | 441 | $scope.loadStates(); |
442 | - $ionicModal.fromTemplateUrl('html/_create_proposal.html?10', { | |
442 | + $ionicModal.fromTemplateUrl('html/_create_proposal.html?11', { | |
443 | 443 | scope: $scope, |
444 | 444 | animation: 'slide-in-up' |
445 | 445 | }).then(function(modal) { |
... | ... | @@ -518,11 +518,13 @@ angular.module('confjuvapp.controllers', []) |
518 | 518 | $scope.proposalsByTopic[data.topic_id.id].push(proposal); |
519 | 519 | $scope.loading = false; |
520 | 520 | $scope.data.title = $scope.data.description = $scope.data.topic_id = null; |
521 | + document.getElementById('save-proposal').innerHTML = 'Salvar'; | |
521 | 522 | }); |
522 | 523 | }, function(err) { |
523 | 524 | $scope.closeProposalModal(); |
524 | 525 | var popup = $ionicPopup.alert({ title: 'Criar proposta', template: 'Erro ao criar proposta!' }); |
525 | 526 | $scope.loading = false; |
527 | + document.getElementById('save-proposal').innerHTML = 'Salvar'; | |
526 | 528 | popup.then(function() { |
527 | 529 | $scope.openCreateProposalForm(); |
528 | 530 | }); | ... | ... |