corrade-nucleus-nucleons – Diff between revs 37 and 39
?pathlinks?
Rev 37 | Rev 39 | |||
---|---|---|---|---|
Line 140... | Line 140... | |||
140 | }); |
140 | }); |
|
141 | }); |
141 | }); |
|
Line 142... | Line 142... | |||
142 | |
142 | |
|
143 | // Windows clicking brings to front. |
143 | // Windows clicking brings to front. |
|
- | 144 | $(document).on('click', '.window-manager-window', function(event) { |
||
- | 145 | //alert($(event.target).attr('z-index')); |
||
144 | $(document).on('click', '.window-manager-window', function(event) { |
146 | $(event.target).closest('.window-manager-window').css('z-index', getTopWindowIndex() + 1); |
|
- | 147 | //$(this).attr('z-index', getTopWindowIndex() + 1); |
||
- | 148 | //alert(JSON.stringify($(this), null, 4)); |
||
- | 149 | //alert("this: " + event.target.style.zIndex + " top: " + getTopWindowIndex()); |
||
- | 150 | //event.target.style.zIndex = getTopWindowIndex() + 1; |
||
- | 151 | //alert("this: " + event.target.style.zIndex + " top: " + getTopWindowIndex()); |
||
145 | $(this).attr('z-index', getTopWindowIndex() + 1); |
152 | //event.stopPropagation(); |
|
Line 146... | Line 153... | |||
146 | }); |
153 | }); |
|
147 | |
154 | |
|
148 | function dragMoveListener (event) { |
155 | function dragMoveListener (event) { |