gitlabhq/gitlabhq — pull request #7426 by Razer6 (2014-08-04 08:12:47+00:00)
Title: rtrim() input before checking if note form is empty

#### What does this MR do?

This PR prevents the `Add Comment` button to get activated when only entering whitespace. This is done be doing an `rtrim` before checking if the input is empty.

#### Why was this MR needed?

Currently when entering a comment with only whitespace, the `Add comment` button gets activated.