Commit 73b56ec6 authored by Randall Leeds's avatar Randall Leeds

capture auto-filled form values

parent 31bbad53
......@@ -12,11 +12,11 @@ class App
token: null
this.$inject = [
'$compile', '$element', '$http', '$location', '$scope',
'$compile', '$element', '$http', '$location', '$scope', '$timeout',
'annotator', 'flash', 'threading'
]
constructor: (
$compile, $element, $http, $location, $scope,
$compile, $element, $http, $location, $scope, $timeout
annotator, flash, threading
) ->
{plugins, provider} = annotator
......@@ -170,6 +170,14 @@ class App
$scope.$broadcast '$reset'
# Update scope with auto-filled form field values
$timeout ->
for i in $element.find('input')
$i = angular.element(i)
$i.triggerHandler('change')
$i.triggerHandler('input')
, 200 # We hope this is long enough
class Annotation
this.$inject = [
......
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