Browse code

Automaticke zatvaranie popupu pri prihlaseni

Cinan Rakosnik authored on 20/05/2013 at 16:18:00
Showing 3 changed files
... ...
@@ -10,10 +10,16 @@ $().ready(->
10 10
     App.UI.filterContacts(searchTerm)
11 11
   )
12 12
 
13
-#  $('.chat-alert').on('click', '.close', (e) ->
14
-#    e.preventDefault()
15
-#    $('.chat-alert').fadeOut(250, -> $(this).html(''))
16
-#  )
13
+  $('.chat-alert .close').click((e) ->
14
+    e.preventDefault()
15
+    $('.chat-alert').fadeOut(250, ->
16
+      $(this).html('').show()
17
+    )
18
+  )
19
+
20
+  setTimeout(->
21
+    $('.chat-alert .close').click()
22
+  , 2000);
17 23
 
18 24
   $('#add-contact').click((e) ->
19 25
     e.preventDefault()
... ...
@@ -10,6 +10,7 @@
10 10
   margin-bottom: 58px;
11 11
   padding: 0 11px;
12 12
   position: absolute;
13
+  @include box-shadow(rgba(33,87,81, 0.4) 0 1px 2px);
13 14
 
14 15
   h1 {
15 16
     font-size: 1.4em;
... ...
@@ -6,7 +6,7 @@
6 6
     I18n.defaultLocale = "#{I18n.default_locale}";
7 7
     I18n.locale = "#{I18n.locale}";
8 8
 
9
-%div.chat-alert.alert-notice.no-top-border.top-border#js-popup
9
+%div.chat-alert.alert-notice.no-top-border#js-popup
10 10
   - if flash[:notice]
11 11
     %a.close.icon-x{ alt: "#{I18n.t('chat.close')}", href: '#' }
12 12
     %h1