Commit 65e6af66 authored by Randall Leeds's avatar Randall Leeds

hide the auth sheet on successful submits

parent 5f722fab
......@@ -103,13 +103,13 @@ class App
if data.model? then angular.extend $scope, data.model
if data.flash? then flash q, msgs for q, msgs of data.flash
if data.status is 'failure' then flash 'error', data.reason
if data.status is 'okay' then $scope.sheet.collapsed = true
$scope.$watch 'personas', (newValue, oldValue) =>
if newValue?.length
annotator.element.find('#persona')
.off('change').on('change', -> $(this).submit())
.off('click')
$scope.sheet.collapsed = true
else
$scope.persona = null
$scope.token = null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment