@@ -15,7 +15,7 @@
1515 */
1616
1717import QtQuick 2.0
18−import Ubuntu.Components 0.1
18+import Ubuntu.Components 1.1
1919import "../../Components"
2020
2121/*! \brief Preview widget for commenting.
@@ -33,9 +33,6 @@ PreviewWidget {
3333 property alias commentText: commentTextArea.text
3434
3535 function submit() {
36− // checks if comment text area actually contains something
37− if (commentTextArea.text === "") return;
38−
3936 var data = { "comment": commentTextArea.text };
4037 triggered(root.widgetId, "commented", data);
4138 }
@@ -78,7 +75,7 @@ PreviewWidget {
7875 id: submitButton
7976 objectName: "submitButton"
8077
81− readonly property bool readyToSubmit: commentTextArea.text.length > 0
78+ readonly property bool readyToSubmit: commentTextArea.text.trim().length > 0
8279
8380 anchors {
8481 top: parent.top