Revision bba1c85c snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/vm-wizard.js
49 49
		ui.wizard.focusFun();
50 50
		ui.wizard.indicateStep(ui.wizard.current_step);
51 51
		ui.wizard.setMovementTags(ui.wizard.current_step, ui.wizard.btns.previous, ui.wizard.btns.next);
52
		$('body').css('overflow','hidden');
52 53
		// the current visible pane
53 54
        current = this.getCurrent();
54 55
        // Set next pane position on the right of the current one
55 56
        // Add current to the next pane, so that it will become
56 57
        // visible
58
        console.log('1');
57 59
        step.css({
58 60
            left: pos.toString() + '%'
59 61
        }).addClass("current");
......
64 66
        step.css({
65 67
            top: this.getScrollOffset() + 'px'
66 68
        });
67

  
68 69
        $('.step').animate({
69 70
            marginLeft: (-pos).toString() + '%'
70 71
        }, {
......
81 82
                $('.step').css({
82 83
                    marginLeft: '0'
83 84
                });
85
                $('body').css('overflow','visible');
84 86
            }, this)
85 87
        });
86 88
	},
......
174 176
	// manually sets elements to a initial state
175 177
	resetWizard: function() {
176 178
		ui.wizard.current_step = 1;
177
		$('.vm-wizard-carousel').css('left', 0);
179
		$('.step').removeAttr('style');
178 180
		$('.bottom').show();
179 181
		ui.wizard.indicateStep(ui.wizard.current_step);
180 182
		ui.wizard.setMovementTags();
181 183
		$('.networks-area .more').show();
182 184
		$('.details').hide();
183
		$('.vm-wizard-carousel input').val('');
185
		$('.vm-name input').removeAttr('value');
184 186
		$('.advanced-conf-options').hide();
185 187
		$('.snf-color-picker').hide();
186 188
		ui.wizard.preselectElements('.wizard');
......
214 216
		$(area).find('.snf-checkbox-checked').not('.prechecked').toggleClass('snf-checkbox-checked snf-checkbox-unchecked');
215 217
		$(area).find('.snf-checkbox-unchecked.prechecked').toggleClass('snf-checkbox-checked snf-checkbox-unchecked');
216 218
		$('.expand-link').find('.snf-arrow-up.preselected').toggleClass('snf-arrow-up snf-arrow-down');
219
		$('.step-1').addClass('current');
217 220
	},
218 221

  
219 222
	pickResources: function(resource) {

Also available in: Unified diff