diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-12 15:25:36 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-12 15:25:36 +0100 |
commit | 1f388ad3bc7e844bfea566214e442a2f10073146 (patch) | |
tree | 8e88aa2f6fe82bc2bcd4654dd763fc29b1c4060a /coffee | |
parent | c0ff872e0a77d078c5944679a6711abd46748948 (diff) |
spaces to tabs
Diffstat (limited to 'coffee')
-rw-r--r-- | coffee/directives/clickslidetoggle.coffee | 16 | ||||
-rw-r--r-- | coffee/lib/services/notification.coffee | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/coffee/directives/clickslidetoggle.coffee b/coffee/directives/clickslidetoggle.coffee index 51bf76bd2..f6dabb614 100644 --- a/coffee/directives/clickslidetoggle.coffee +++ b/coffee/directives/clickslidetoggle.coffee @@ -18,7 +18,7 @@ Used to slide up an area and can be customized by passing an expression. If selector is defined, a different area is slid up on click If hideOnFocusLost is defined, the slid up area will hide when the focus is lost ### -angular.module('News').directive 'clickSlideToggle', +angular.module('News').directive 'clickSlideToggle', ['$rootScope', ($rootScope) -> return (scope, elm, attr) -> @@ -37,19 +37,19 @@ angular.module('News').directive 'clickSlideToggle', if angular.isDefined(options.hideOnFocusLost) and options.hideOnFocusLost $(document.body).click -> - $rootScope.$broadcast 'lostFocus' + $rootScope.$broadcast 'lostFocus' - $rootScope.$on 'lostFocus', (scope, params) -> - if params != slideArea - if slideArea.is(':visible') and not slideArea.is(':animated') - slideArea.slideUp() + $rootScope.$on 'lostFocus', (scope, params) -> + if params != slideArea + if slideArea.is(':visible') and not slideArea.is(':animated') + slideArea.slideUp() slideArea.click (e) -> - $rootScope.$broadcast 'lostFocus', slideArea + $rootScope.$broadcast 'lostFocus', slideArea e.stopPropagation() elm.click (e) -> - $rootScope.$broadcast 'lostFocus', slideArea + $rootScope.$broadcast 'lostFocus', slideArea e.stopPropagation() ]
\ No newline at end of file diff --git a/coffee/lib/services/notification.coffee b/coffee/lib/services/notification.coffee index 295b5d25a..dd504a23c 100644 --- a/coffee/lib/services/notification.coffee +++ b/coffee/lib/services/notification.coffee @@ -15,4 +15,4 @@ # Inject notification into angular to make testing easier ### angular.module('OC').factory 'Notification', -> - return OC.Notification
\ No newline at end of file + return OC.Notification
\ No newline at end of file |