From bbe34e6f9432b4c44944ed0880ac65e00e58b735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sun, 30 Aug 2015 16:21:14 +0200 Subject: [PATCH] Add custom favicon --- img/favicon.png | Bin 0 -> 848 bytes img/favicon.svg | 13 +++++++++++++ js/app/app.coffee | 3 +++ js/app/filters/counterFormatter.coffee | 2 +- js/public/app.js | 1 + 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 img/favicon.png create mode 100644 img/favicon.svg diff --git a/img/favicon.png b/img/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..412eb63535f2e9fbe4d9d2e2205b8847c2465b55 GIT binary patch literal 848 zcmV-W1F!svP)A5-pDF+7Hg9DE)?LGkGFoGNbv|IqlUI4`Y4Dlg7)pY>{|9*yn1CC5|N&_gs(o`Rr>%c@$%gu~*87>@L!?1K_CyF== zy&RApAIeailfb~i&c={m*+G9twAbb{L}N1F)B&?kpTEM8lv{^Y9TPnq@cQk0hQyp&oNAe9?SSt; zelj@vB{6*Z{DppwKz6{7pT8KgN?Pzbfa;D|Jfj`%fZu=qFf3fLkzwzl69n}!Q8O1< znHj+O_wGMtXziUvlwPVhVp2yXI2*FEu)xzna6%E$`cbmzww2Qv{{H>Tuw~~#hUM$F z6O2m`D9DIm@OHC7=qOqSSy;ws+N7$uU6;myfJt2=sQw=>R4sgb|=b;rzws~J`Ri*yj^o3@B5l^ + + + + + + diff --git a/js/app/app.coffee b/js/app/app.coffee index 557d818e..17a76414 100644 --- a/js/app/app.coffee +++ b/js/app/app.coffee @@ -61,6 +61,9 @@ angular.module('Tasks').run ['$document', '$rootScope', 'Config', '$timeout', OCA.Search.tasks = SearchBusinessLayer + $('link[rel="shortcut icon"]') + .attr('href', OC.filePath('tasks', 'img', 'favicon.png')) + $document.click (event) -> $rootScope.$broadcast 'documentClicked', event return diff --git a/js/app/filters/counterFormatter.coffee b/js/app/filters/counterFormatter.coffee index 6069e63c..7d04126a 100644 --- a/js/app/filters/counterFormatter.coffee +++ b/js/app/filters/counterFormatter.coffee @@ -21,7 +21,7 @@ License along with this library. If not, see . ### angular.module('Tasks').filter 'counterFormatter', () -> (count) -> - return switch + return switch when count == 0 then '' when count > 999 then '999+' else count diff --git a/js/public/app.js b/js/public/app.js index c78e6697..424c7ef9 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -42,6 +42,7 @@ return timeOutUpdate(); })(); OCA.Search.tasks = SearchBusinessLayer; + $('link[rel="shortcut icon"]').attr('href', OC.filePath('tasks', 'img', 'favicon.png')); $document.click(function(event) { $rootScope.$broadcast('documentClicked', event); });