Revision e3ca0fe1

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js
153 153
            ui.expandArrow(ui.wizard.btns.expand_down);
154 154
            $('.wizard-content').removeAttr('style');
155 155
            ui.wizard.btns.expand_down.parents('div.advanced-conf-step').find('.advanced-conf-options').stop().slideToggle(600, function() {
156
				;ui.wizard.setStepHeight($('.step-3'));
157 156
	        	if($('.advanced-conf-options:visible').length != 0) {
158 157
	        		ui.wizard.btns.expand_down.find('.snf-arrow-down .snf-arrow-up').removeClass('snf-arrow-down').addClass('snf-arrow-up');
159 158
	        	} 
160 159
	        	else {
161 160
	        		ui.wizard.btns.expand_down.find('.snf-arrow-down .snf-arrow-up').addClass('snf-arrow-down');
162 161
	        	}
162
				ui.wizard.setStepHeight($('.step-3'));
163 163
	        });
164 164
	    })
165 165
	},
......
239 239
        $('.wizard .sub-menu a[data-size]').removeClass('current');
240 240
        $(this).parents('.options').find('a').removeClass('current');
241 241
        $(this).addClass('current');
242

  
243
        var size, count;
244
        if($(this).hasClass('small')) {
245
            size = 'small';
246
        }
247
        else if ($(this).hasClass('medium')){
248
            size = 'medium';
249
        }
250

  
251
        else if($(this).hasClass('large')) {
252
            size = 'large';
253
        }
254

  
255
        count = $('.wizard .step-2 .options.with-flavor .'+size+'.current').length;
256
        if(count == 3) {
257
            $('.wizard .sub-menu[data-step=2]').find('a[data-size='+size+']').addClass('current');
258
        }
242 259
    });
243 260

  
244 261
  	$('.wizard .flavor .options.vm-storage-selection a').click(function(e){

Also available in: Unified diff