diff --git a/app/templates/editor.html b/app/templates/editor.html index 97232ef356..5c2e117cf6 100644 --- a/app/templates/editor.html +++ b/app/templates/editor.html @@ -30,7 +30,7 @@
- diff --git a/src/controllers/editor.js b/src/controllers/editor.js index 6a0c28ef00..e8aa49bfa4 100644 --- a/src/controllers/editor.js +++ b/src/controllers/editor.js @@ -131,7 +131,7 @@ export default ($scope, $rootScope, $routeParams, $filter, $location, $window, $ $scope.title = undefined; $scope.body = $scope.tempBody = undefined; $scope.tags = undefined; - $scope.operationType = 'default'; + $scope.operationType = {val: 'default'}; $scope.vote = {checked: false}; $scope.saving = false; @@ -388,7 +388,7 @@ export default ($scope, $rootScope, $routeParams, $filter, $location, $window, $ const permlink = createPermlink(title); const meta = extractMetadata(body); const jsonMeta = makeJsonMetadata(meta, tags, appVersion); - const options = makeOptions(activeUsername(), permlink, $scope.operationType); + const options = makeOptions(activeUsername(), permlink, $scope.operationType.val); const voteWeight = $scope.vote.checked ? (helperService.getVotePerc(activeUsername()) * 100) : null; $scope.posting = true; @@ -562,7 +562,7 @@ export default ($scope, $rootScope, $routeParams, $filter, $location, $window, $ return $scope.tags.split(' '); }, operationType: () => { - return $scope.operationType; + return $scope.operationType.val; }, vote: () => { return $scope.vote.checked; @@ -583,7 +583,7 @@ export default ($scope, $rootScope, $routeParams, $filter, $location, $window, $ $scope.title = ''; $scope.body = $scope.tempBody = ''; $scope.tags = ''; - $scope.operationType = 'default'; + $scope.operationType.val = 'default'; $scope.vote.checked = false; $scope.draftId = null;