summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--coffee/directives/clickslidetoggle.coffee16
-rw-r--r--coffee/lib/services/notification.coffee2
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