Revision 9ca32eaa snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/wizard.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/wizard.js | ||
---|---|---|
464 | 464 |
e.preventDefault(); |
465 | 465 |
ui.expandDownArea(this, wizard.find('.advanced-conf-options')); |
466 | 466 |
}); |
467 |
|
|
468 |
|
|
469 |
// reaction li.click * |
|
470 |
wizard.find('.advanced-conf-options .with-checkbox').click(function(e) { |
|
471 |
e.preventDefault(); |
|
472 |
$(this).find('.check').trigger('click'); |
|
473 |
}); |
|
474 |
|
|
475 |
// reaction a.click * |
|
476 |
$('.with-checkbox .check').click(function(e) { |
|
477 |
e.stopPropagation(); |
|
478 |
console.log('hi'); |
|
479 |
var self = this; |
|
480 |
if ($(this).closest('.with-checkbox').hasClass('has-more')) { |
|
481 |
$(this).parent().next('.more').stop().slideToggle(400, function() { |
|
482 |
if ($(self).parent().next('.more:visible').length != 0) { |
|
483 |
$(self).find('span').removeClass('snf-checkbox-unchecked').addClass('snf-checkbox-checked'); |
|
484 |
} else { |
|
485 |
$(self).find('span').removeClass('snf-checkbox-checked').addClass('snf-checkbox-unchecked'); |
|
486 |
} |
|
487 |
}); |
|
488 |
} |
|
489 |
}); |
|
490 | 467 |
} |
491 | 468 |
else if (wizardType == 'network-wizard') { |
492 | 469 |
|
Also available in: Unified diff