Permalink
Browse files

Hides panels when the popup is open.

  • Loading branch information...
1 parent ee2eeab commit a0afa24f649ea7404b6822742e33d9d5e05a71b5 @kaleworsley committed Aug 22, 2011
Showing with 13 additions and 0 deletions.
  1. +9 −0 app/assets/javascripts/popup.js.coffee
  2. +4 −0 app/assets/stylesheets/application.css
@@ -13,6 +13,9 @@ window.addPopup = (popup, select = null) ->
resizable: false
open: (event, ui)->
popupButtons($('#popup-' + popup.id))
+ $('body').addClass('popup')
+ close: (event, ui)->
+ $('body').removeClass('popup')
)
else
@@ -34,6 +37,12 @@ window.addPopup = (popup, select = null) ->
width: $(window).width() - 400
height: $(window).height() - 95
resizable: false
+ open: (event, ui)->
+ popupButtons($('#popup-' + popup.id))
+ $('body').addClass('popup')
+ close: (event, ui)->
+ $('body').removeClass('popup')
+
)
popup_div.tabs('select', select)
@@ -71,3 +71,7 @@ article#dashboard:after {
visibility: hidden;
}
+body.popup #panels {
+ display: none;
+}
+

0 comments on commit a0afa24

Please sign in to comment.