Commit 6a306c4d authored by Randall Leeds's avatar Randall Leeds

work around a jquery 1.9 change for .attr('value')

For whatever reason, .attr('value') on a textarea no longer gets its
value reliably. Using the native element's value property works.
parent 0c23ce85
......@@ -34,8 +34,7 @@ markdown = ['$filter', '$timeout', ($filter, $timeout) ->
# React to the changes to the text area
input.bind 'blur change keyup', ->
value = input.attr('value') or ''
ctrl.$setViewValue value
ctrl.$setViewValue input[0].value
scope.$digest()
# Auto-focus the input box when the widget becomes editable.
......
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