branch develop updated (bb564b0 -> a6d7596)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git from bb564b0 internal-test #6654 be bale to remove deadline for project new a6d7596 internal-test #6653 convert deadline Date as timestamp before update question with new status closed/adjourned/reopened The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit a6d759680e264afd96d1dc1f3ab2dfbf1b6fcb2f Author: Yannick Martel <martel@©odelutin.com> Date: Fri Feb 13 10:56:51 2015 +0100 internal-test #6653 convert deadline Date as timestamp before update question with new status closed/adjourned/reopened Summary of changes: coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit a6d759680e264afd96d1dc1f3ab2dfbf1b6fcb2f Author: Yannick Martel <martel@©odelutin.com> Date: Fri Feb 13 10:56:51 2015 +0100 internal-test #6653 convert deadline Date as timestamp before update question with new status closed/adjourned/reopened --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 3a46673..e7f25e4 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -886,6 +886,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.closeQuestion = function(){ $scope.question.status = "CLOSED"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { @@ -905,6 +911,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.reopenQuestion = function(){ $scope.question.status = "IN_PROGRESS"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { @@ -916,6 +928,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.adjournQuestion = function(){ $scope.question.status = "ADJOURNED"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm