Browse code

Inaktivna vrstva pod popupmi

Cinan Rakosnik authored on 27/05/2013 at 11:44:50
Showing 3 changed files
... ...
@@ -25,10 +25,12 @@ class Xmpp.Views.Popup.PopupView extends Backbone.View
25 25
     thisView.delegateEvents()
26 26
 
27 27
     $(@el).append(@superTemplate(inside: childHtml, class: @className))
28
+    $('.inactive-layer').fadeIn(50)
28 29
 
29 30
   close: (e) ->
30 31
     e.preventDefault()
31 32
     @remove(e)
33
+    $('.inactive-layer').fadeOut(50)
32 34
 
33 35
   remove: (e) ->
34 36
     @stopListening()
... ...
@@ -3,6 +3,14 @@
3 3
   padding: 10px 17px;
4 4
 }
5 5
 
6
+.inactive-layer {
7
+  width: 100%;
8
+  height: 98%;
9
+  position: absolute;
10
+  z-index: 990;
11
+  background: rgba(40,40,40,0.72);
12
+}
13
+
6 14
 .chat-alert {
7 15
   width: 400px;
8 16
   left: 490px;
... ...
@@ -7,6 +7,7 @@
7 7
     I18n.locale = "#{I18n.locale}";
8 8
 
9 9
 .chat-alert.alert-notice.no-top-border#js-popups
10
+.inactive-layer.hidden
10 11
 .container
11 12
   .leftside.left
12 13
     .roster.border.no-top-border.top-border