Revision 62462e34 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/network-wizard.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/network-wizard.js | ||
---|---|---|
5 | 5 |
create: undefined, |
6 | 6 |
close: undefined, |
7 | 7 |
new_network: undefined |
8 |
} |
|
8 |
}, |
|
9 |
close: function(bottom_area, main_area, total_area) { |
|
10 |
$(bottom_area).hide(); |
|
11 |
$(main_area).slideUp(); |
|
12 |
$(total_area).slideUp(); |
|
13 |
} |
|
9 | 14 |
} |
10 | 15 |
|
11 | 16 |
|
12 | 17 |
|
13 | 18 |
$(document).ready(function(){ |
14 |
|
|
19 |
$('#network-wizard').find('a').click(function(e) { |
|
20 |
e.preventDefault(); |
|
21 |
}); |
|
15 | 22 |
ui.wizard.network.elemID = '#network-wizard'; |
16 | 23 |
ui.wizard.network.btns.new_network = $(ui.wizard.network.elemID); |
17 | 24 |
ui.wizard.network.btns.close = ui.wizard.network.btns.new_network.find('.close'); |
... | ... | |
22 | 29 |
// create network |
23 | 30 |
$('.network_options .check').click(function(e){ |
24 | 31 |
e.preventDefault(); |
25 |
|
|
26 |
ui.change_checkbox_state(this); |
|
27 | 32 |
$(this).parents('li').siblings().find('ul.subnet_options').parent('li').toggle(); |
28 |
|
|
29 | 33 |
}); |
30 | 34 |
|
31 | 35 |
$('.network_options .radio_btn').click(function(e){ |
32 | 36 |
e.preventDefault(); |
33 |
|
|
34 | 37 |
var state = $(this).find('span'); |
35 | 38 |
if(state.hasClass('snf-radio-unchecked')) { |
36 |
ui.check_one_radiobtn(this);
|
|
37 |
ui.change_radiobutton_state(this);
|
|
39 |
ui.checkOneRadioButton(this);
|
|
40 |
ui.changeRadiobuttonState(this);
|
|
38 | 41 |
|
39 | 42 |
if($(this).hasClass('manual')) { |
40 | 43 |
$(this).siblings('.manual_sub').toggle(); |
... | ... | |
44 | 47 |
} |
45 | 48 |
} |
46 | 49 |
|
47 |
}) |
|
50 |
}); |
|
51 |
$(ui.wizard.network.btns.cancel).click(function(e) { |
|
52 |
ui.wizard.network.close('.bottom', '#network-wizard', '.overlay-area'); |
|
53 |
}); |
|
54 |
$(ui.wizard.network.btns.create).click(function(e) { |
|
55 |
ui.wizard.network.close('.bottom', '#network-wizard', '.overlay-area'); |
|
56 |
}); |
|
57 |
$(ui.wizard.network.btns.close).click(function(e) { |
|
58 |
ui.wizard.network.close('.bottom', '#network-wizard', '.overlay-area'); |
|
59 |
}); |
|
60 |
|
|
48 | 61 |
}) |
Also available in: Unified diff