Revision 97ee3637 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
66 66
        step.css({
67 67
            top: this.getScrollOffset() + 'px'
68 68
        });
69
        $('.step').animate({
69
        window.scroll(0, 0);
70
        $('.step').finish().animate({
70 71
            marginLeft: (-pos).toString() + '%'
71 72
        }, {
72 73
            complete: _.bind(function() {
......
74 75
                // instantaneously within a single browser 
75 76
                // render cycle, no flickering should occur.
76 77
                current.removeClass("current");
77
                window.scroll(0, 0);
78 78
                step.css({
79 79
                    left: '0',
80 80
                    top: '0'
......
197 197
		ui.wizard.setMovementTags();
198 198
		$('.networks-area .more').show();
199 199
		$('.details').hide();
200
		$('.vm-name input').removeAttr('value');
200
		$('.vm-name input').val("");
201
		$('.form-item input').val("");
201 202
		$('.advanced-conf-options').hide();
202 203
		$('.snf-color-picker').hide();
203 204
		ui.wizard.preselectElements('.wizard');

Also available in: Unified diff