Revision ffaabee9
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js | ||
---|---|---|
185 | 185 |
var h1 = stepEl.height(); |
186 | 186 |
var h2 = $('.wizard .top').height(); |
187 | 187 |
var res = h1 +h2; |
188 |
console.log(res); |
|
189 | 188 |
$('.wizard-content').css('height',res); |
190 | 189 |
}, |
191 | 190 |
|
191 |
returnStepHeight: function(stepEl) { |
|
192 |
var h1 = stepEl.height(); |
|
193 |
var h2 = $('.wizard .top').height(); |
|
194 |
var res = h1 +h2; |
|
195 |
return res; |
|
196 |
}, |
|
197 |
|
|
192 | 198 |
pickResources: function(resource) { |
193 | 199 |
$('.flavor .with-flavor a:not(.'+resource+')').removeClass('current'); |
194 | 200 |
$('.flavor .with-flavor a.'+resource+'').addClass('current'); |
... | ... | |
298 | 304 |
|
299 | 305 |
$('.show-add-tag').click(function(e){ |
300 | 306 |
e.preventDefault(); |
301 |
$(this).parents('.tags-area').find('.snf-color-picker').slideDown(400, function(){ |
|
302 |
goToByScroll('hide-add-tag'); |
|
307 |
$(this).parents('.tags-area').find('.snf-color-picker').slideDown('slow', function(){ |
|
303 | 308 |
ui.wizard.setStepHeight($('.step-3')); |
309 |
$('#hide-add-tag-dummy').scrollintoview({'duration':'slow'}); |
|
304 | 310 |
}); |
305 | 311 |
ui.colorPickerVisible =1; |
306 | 312 |
}); |
... | ... | |
308 | 314 |
$('.hide-add-tag').click(function(e){ |
309 | 315 |
e.preventDefault(); |
310 | 316 |
$(this).parents('.tags-area').find('.snf-color-picker').slideUp(400, function(){ |
317 |
$('.show-add-tag').first().scrollintoview({'duration':'slow'}); |
|
311 | 318 |
ui.colorPickerVisible = 0; |
319 |
ui.wizard.setStepHeight($('.step-3')); |
|
312 | 320 |
}); |
313 | 321 |
}); |
314 | 322 |
|
b/snf-cyclades-app/synnefo/ui/new_ui/ui/vm_list.html | ||
---|---|---|
513 | 513 |
<a href="" class="check"><span class="snf-checkbox-unchecked"></span></a> |
514 | 514 |
</li> |
515 | 515 |
</ul> |
516 |
<div ><a class="btn5 show-add-tag" href="">add Tag</a></div> |
|
516 |
<div ><a class="btn5 show-add-tag" href="" id="show-add-tag">add Tag</a></div>
|
|
517 | 517 |
<div class="snf-color-picker"> |
518 | 518 |
<form action="" style="width: 400px;"> |
519 | 519 |
<div id="picker"> |
... | ... | |
532 | 532 |
</form> |
533 | 533 |
<div class="btns"> |
534 | 534 |
<a class="btn5" href="">OK</a> |
535 |
<a class="btn5 hide-add-tag" href="" id="hide-add-tag">CANCEL</a>
|
|
535 |
<a class="btn5 hide-add-tag" href="">CANCEL</a> |
|
536 | 536 |
</div> |
537 |
<a href="" id="hide-add-tag-dummy" style="position:relative;top:50px"> </a> |
|
537 | 538 |
</div> |
538 | 539 |
</div> |
539 | 540 |
</div> |
Also available in: Unified diff