diff options
author | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
commit | abf78e2d7a97d295ce5a1c425fd359d47379137e (patch) | |
tree | d08c91bd2aef31e6325e0b499b2ffc390018bec6 /js/components/popup-manager.reel | |
parent | e80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff) | |
parent | e23708721a71ca4c71365f5f8e8ac7d6113926db (diff) | |
download | ninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/components/popup-manager.reel')
-rwxr-xr-x[-rw-r--r--] | js/components/popup-manager.reel/popup-manager.html | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | js/components/popup-manager.reel/popup-manager.js | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/js/components/popup-manager.reel/popup-manager.html b/js/components/popup-manager.reel/popup-manager.html index 7fbbc86e..7fbbc86e 100644..100755 --- a/js/components/popup-manager.reel/popup-manager.html +++ b/js/components/popup-manager.reel/popup-manager.html | |||
diff --git a/js/components/popup-manager.reel/popup-manager.js b/js/components/popup-manager.reel/popup-manager.js index be3c1e8d..fbcd5035 100644..100755 --- a/js/components/popup-manager.reel/popup-manager.js +++ b/js/components/popup-manager.reel/popup-manager.js | |||
@@ -32,7 +32,8 @@ exports.PopupMananger = Montage.create(Component, { | |||
32 | addPopup: { | 32 | addPopup: { |
33 | enumerable: true, | 33 | enumerable: true, |
34 | value: function (popup, depth, blackout) { | 34 | value: function (popup, depth, blackout) { |
35 | // | 35 | //Fix to ensure always highest |
36 | this.element.style.zIndex = this._getNextHighestZindex(document.body); // Highest z-index in body | ||
36 | //TODO: Add blackout background | 37 | //TODO: Add blackout background |
37 | //Checking for manual or setting auto to next highest depth | 38 | //Checking for manual or setting auto to next highest depth |
38 | if (depth) { | 39 | if (depth) { |
@@ -116,7 +117,7 @@ exports.PopupMananger = Montage.create(Component, { | |||
116 | _getNextHighestZindex: { | 117 | _getNextHighestZindex: { |
117 | numerable: false, | 118 | numerable: false, |
118 | value: function (parent) { | 119 | value: function (parent) { |
119 | //Adapcted from: http://greengeckodesign.com/blog/2007/07/get-highest-z-index-in-javascript.html | 120 | //CSS specificity in javascript found at http://gbradley.com/2009/10/02/css-specificity-in-javascript used with permission from Graham Bradley |
120 | var high = 0, current = 0, children = [], i; | 121 | var high = 0, current = 0, children = [], i; |
121 | // | 122 | // |
122 | if (parent) { | 123 | if (parent) { |