Revision f2126967 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
156 | 156 |
e.preventDefault(); |
157 | 157 |
} |
158 | 158 |
}) |
159 |
$('.scroll-pane').jScrollPane(); |
|
159 |
//$('.scroll-pane').jScrollPane(); |
|
160 |
|
|
161 |
// TODO: more general function |
|
162 |
$('.has-overlay a').click(function(e){ |
|
163 |
e.preventDefault(); |
|
164 |
if ($(this).hasClass('active')){ |
|
165 |
$('.content').append('<div class="overlay-modal overlay"><a href="vm_list_v1.html" class="close" title="cancel vm creation">close</a></div>'); |
|
166 |
$($(this).parents('.has-overlay').data('overlay-id')).fadeIn('slow'); |
|
167 |
} |
|
168 |
}) |
|
169 |
|
|
170 |
|
|
171 |
$('.main-actions li a').click(function(e){ |
|
172 |
if (!($(this).hasClass('active'))) { |
|
173 |
e.preventDefault(); |
|
174 |
} |
|
175 |
}) |
|
176 |
|
|
177 |
|
|
178 |
|
|
160 | 179 |
}) |
161 | 180 |
|
162 | 181 |
$(window).resize(function(e){ |
Also available in: Unified diff