| ... | ... |
@@ -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() |
| ... | ... |
@@ -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 |