Commit 2a16bbd6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7572 from mr-vinn/application-js-fix

Handle undefined text area values
parents ec4a0790 8ed7391c
......@@ -63,7 +63,7 @@ window.extractLast = (term) ->
return split( term ).pop()
window.rstrip = (val) ->
return val.replace(/\s+$/, '')
return if val then val.replace(/\s+$/, '') else val
# Disable button if text field is empty
window.disableButtonIfEmptyField = (field_selector, button_selector) ->
......
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