summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/page/events.js3
-rw-r--r--web-ui/app/js/page/feedback.js7
-rw-r--r--web-ui/app/templates/page/feedback.hbs2
3 files changed, 10 insertions, 2 deletions
diff --git a/web-ui/app/js/page/events.js b/web-ui/app/js/page/events.js
index cf1b29ad..c00c2848 100644
--- a/web-ui/app/js/page/events.js
+++ b/web-ui/app/js/page/events.js
@@ -69,6 +69,9 @@ define(function () {
next: 'ui:page:next',
changed: 'ui:page:changed'
},
+ feedback: {
+ open: 'ui:feedback:open'
+ },
composeBox: {
newMessage: 'ui:composeBox:newMessage',
newReply: 'ui:composeBox:newReply',
diff --git a/web-ui/app/js/page/feedback.js b/web-ui/app/js/page/feedback.js
index 032aedbc..34af9b67 100644
--- a/web-ui/app/js/page/feedback.js
+++ b/web-ui/app/js/page/feedback.js
@@ -15,7 +15,7 @@
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['flight/lib/component', 'views/templates'], function (defineComponent, templates) {
+define(['flight/lib/component', 'views/templates', 'page/events'], function (defineComponent, templates, events) {
'use strict';
return defineComponent(function () {
@@ -23,8 +23,13 @@ define(['flight/lib/component', 'views/templates'], function (defineComponent, t
this.$node.html(templates.page.feedback());
};
+ this.onClick = function() {
+ this.trigger(document, events.ui.feedback.open);
+ }
+
this.after('initialize', function () {
this.render();
+ this.on('click', this.onClick);
});
});
diff --git a/web-ui/app/templates/page/feedback.hbs b/web-ui/app/templates/page/feedback.hbs
index 7c5c4d0c..72f9b94b 100644
--- a/web-ui/app/templates/page/feedback.hbs
+++ b/web-ui/app/templates/page/feedback.hbs
@@ -1,5 +1,5 @@
<ul id="feedback">
- <a title="feedback" href="">
+ <a title="Feedback" href="">
<li>
<div class="fa fa-exclamation-circle"></div>
<i class="shortcut-label"></i> Feedback