diff --git a/lib/assets/javascripts/views/answers/edit.js b/lib/assets/javascripts/views/answers/edit.js index 61da461..878d12b 100644 --- a/lib/assets/javascripts/views/answers/edit.js +++ b/lib/assets/javascripts/views/answers/edit.js @@ -12,7 +12,7 @@ const hideSavingMessage = jQuery => jQuery.closest('.question-form').find('[data-status="saving"]').hide(); const closestErrorSavingMessage = jQuery => jQuery.closest('.question-form').find('[data-status="error-saving"]'); const questionId = jQuery => jQuery.closest('.form-answer').attr('data-autosave'); - const isStale = jQuery => jQuery.closest('.question-form').find('.answer-locking').html().length !== 0; + const isStale = jQuery => jQuery.closest('.question-form').find('.answer-locking').text().length !== 0; const isReadOnly = () => $('.form-answer fieldset:disabled').length > 0; /* * A map of debounced functions, one for each input, textarea or select change at any