summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 22:37:31 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-09 22:37:31 +0200
commit7b3ed892681a44e2739e4062e44c53fa0a904667 (patch)
tree92dd6c67d38f2dd8ed6949646f36fd6d9a2c138f /js/build/app.js
parentff528b18df31085263c6362feae89e3dc7f62c1b (diff)
only toggle item if in compact mode
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 88a0dae74..f7c28b0b5 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -148,6 +148,11 @@ var $__app__ = (function() {
this.toggleStar = (function(itemId) {
ItemResource.toggleStar(itemId);
});
+ this.toggleItem = (function(item) {
+ if ($__0.isCompactView()) {
+ item.show = !item.show;
+ }
+ });
this.markRead = (function(itemId) {
var item = ItemResource.get(itemId);
if (!item.keepUnread) {
@@ -1365,6 +1370,17 @@ var $__app__ = (function() {
})
};
}]));
+ app.directive('newsStopPropagation', (function() {
+ 'use strict';
+ return {
+ restrict: 'A',
+ link: (function(scope, element) {
+ element.bind('click', (function(e) {
+ e.stopPropagation();
+ }));
+ })
+ };
+ }));
app.directive('newsTimeout', (["$timeout", function($timeout) {
'use strict';
return {