Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2015-09-02 16:29:00 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-14 16:50:24 +0300
commit4625c88b0f88bdeaaa104563bdcc10b65c882cd5 (patch)
tree6e06c63273dad9e8613b08e4721277dff5faacc5 /js/notification.js
parent2fd55c1886dffb1c017a5492d3ff73ac8101530e (diff)
Add responsive mode. Add icon. Style notification
Diffstat (limited to 'js/notification.js')
-rw-r--r--js/notification.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/notification.js b/js/notification.js
index 1ea3c28..200d753 100644
--- a/js/notification.js
+++ b/js/notification.js
@@ -84,6 +84,10 @@
return $('div.notification[data-id='+this.getId()+']');
},
+ getApp: function() {
+ return this.app;
+ },
+
/**
* Generates the HTML for the notification
*/
@@ -91,13 +95,13 @@
var el = $('<div class="notification"></div>');
el.attr('data-id', this.getId());
el.attr('data-timestamp', this.getTimestamp());
- el.append('<div class="notification-subject">'+this.getSubject()+'</div>');
+ el.append('<div class="notification-app">'+this.getApp()+'</div><div class="notification-subject">> '+this.getSubject()+'</div>');
el.append('<div class="notification-message">'+this.getMessage()+'</div>');
// Add actions
var actions = $('<div class="actions"></div>');
var actionsData = this.getActions();
$.each(actionsData, function(index) {
- actions.append('<a class="button" href="'+actionsData[index].link+'">'+actionsData[index].label+'</a>');
+ actions.append('<div class="button"><a href="'+actionsData[index].link+'">'+actionsData[index].label+'</a></div>');
// TODO create event handler on click for given action type
});
el.append(actions);