mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 13:16:09 +10:00
Merge pull request #7572 from mr-vinn/application-js-fix
Handle undefined text area values
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user