diff options
Diffstat (limited to 'coffee/directives/hidesettingswhenfocuslost.coffee')
-rw-r--r-- | coffee/directives/hidesettingswhenfocuslost.coffee | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/coffee/directives/hidesettingswhenfocuslost.coffee b/coffee/directives/hidesettingswhenfocuslost.coffee deleted file mode 100644 index 0a1f92fdf..000000000 --- a/coffee/directives/hidesettingswhenfocuslost.coffee +++ /dev/null @@ -1,30 +0,0 @@ -### -# ownCloud news app -# -# @author Alessandro Cosentino -# @author Bernhard Posselt -# Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com> -# Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com> -# -# This file is licensed under the Affero General Public License version 3 or -# later. -# -# See the COPYING-README file -# -### - -### -# This is used to signal the settings bar that the app has been focused and that -# it should hide -### -angular.module('News').directive 'hideSettingsWhenFocusLost', ['$rootScope', -($rootScope) -> - - return (scope, elm, attr) -> - $(document.body).click -> - $rootScope.$broadcast('hidesettings') - scope.$apply attr.hideSettingsWhenFocusLost - - $(elm).click (e) -> - e.stopPropagation() -] |