- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
var move_container_after = function(toMove, toAfter) {
$(toMove).insertAfter(toAfter);
};
var move_container_before = function(toMove, toBefore) {
$(toMove).insertBefore(toBefore);
};
move_container_before(".toggle.basic1-tog", ".basic1 .store-order-item-group-action-list");
move_container_after(".toggle.basic1rn-tog", ".basic1rn .store-order-item-description");
move_container_before(".toggle.basic3-tog", ".basic3 .store-order-item-group-action-list");
move_container_after(".toggle.basic3rn-tog", ".basic3rn .store-order-item-description");
move_container_before(".toggle.bundle1-tog", ".bundle1 .store-order-item-group-action-list");
move_container_after(".toggle.bundle1rn-tog", ".bundle1rn .store-order-item-group-action-list");
move_container_before(".toggle.bundle12-tog", ".bundle12 .store-order-item-group-action-list");
move_container_after(".toggle.bundle12rn-tog", ".bundle12rn .store-order-item-group-action-list");
move_container_before(".toggle.bundle3-tog", ".bundle3 .store-order-item-group-action-list");
move_container_after(".toggle.bundle3rn-tog", ".bundle3rn .store-order-item-group-action-list");
move_container_before(".toggle.bundle6-tog", ".bundle6 .store-order-item-group-action-list");
move_container_after(".toggle.bundle6rn-tog", ".bundle6rn .store-order-item-group-action-list");
move_container_before(".toggle.desktop1-tog", ".desktop1 .store-order-item-group-action-list");
move_container_after(".toggle.desktop1rn-tog", ".desktop1rn .store-order-item-description");
move_container_before(".toggle.desktop12-tog", ".desktop12 .store-order-item-group-action-list");
move_container_after(".toggle.desktop12rn-tog", ".desktop12rn .store-order-item-description");
move_container_before(".toggle.desktop3-tog", ".desktop3 .store-order-item-group-action-list");
move_container_after(".toggle.desktop3rn-tog", ".desktop3rn .store-order-item-description");
move_container_before(".toggle.desktop6-tog", ".desktop6 .store-order-item-group-action-list");
move_container_after(".toggle.desktop6rn-tog", ".desktop6rn .store-order-item-description");
move_container_before(".toggle.desktopbus12-tog", ".desktopbus12 .store-order-item-group-action-list");
move_container_after(".toggle.desktopbus12rn-tog", ".desktopbus12rn .store-order-item-description");
move_container_before(".toggle.desktopbus6-tog", ".desktopbus6 .store-order-item-group-action-list");
move_container_after(".toggle.desktopbus6rn-tog", ".desktopbus6rn .store-order-item-description");
move_container_before(".toggle.premium1-tog", ".premium1 .store-order-item-group-action-list");
move_container_after(".toggle.premium1rn-tog", ".premium1rn .store-order-item-description");
move_container_before(".toggle.premium12-tog", ".premium12 .store-order-item-group-action-list");
move_container_after(".toggle.premium12rn-tog", ".premium12rn .store-order-item-description");
move_container_before(".toggle.premium3-tog", ".premium3 .store-order-item-group-action-list");
move_container_after(".toggle.premium3rn-tog", ".premium3rn .store-order-item-description");
move_container_before(".toggle.premium6-tog", ".premium6 .store-order-item-group-action-list");
move_container_after(".toggle.premium6rn-tog", ".premium6rn .store-order-item-description");
move_container_before(".toggle.premiumbus12-tog", ".premiumbus12 .store-order-item-group-action-list");
move_container_after(".toggle.premiumbus12rn-tog", ".premiumbus12rn .store-order-item-description");
move_container_before(".toggle.premiumbus6-tog", ".premiumbus6 .store-order-item-group-action-list");
move_container_after(".toggle.premiumbus6rn-tog", ".premiumbus6rn .store-order-item-description");
"Перенос" формы, для каждого ID, в HTML есть соответствующее колово форм подобного типа
<div class="toggle basic1-tog">Auto Renew: Off
<form method="POST" action="https://sites.fastspring.com/store/api/order">
<input type="hidden" name="operation" value="update"/>
<input type="hidden" name="destination" value="checkout"/>
<input type="hidden" name="product_1_path" value="/basicsubscription1monthrn"/>
<input type="hidden" name="product_2_path" value="/basicsubscription1month"/>
<input type="hidden" name="product_2_quantity" value="0"/>
<input type="submit" value="Turn On"/>
</form>
</div>
<div class="toggle basic1rn-tog">Auto Renew: On
<form method="POST" action="https://sites.fastspring.com/store/api/order">
<input type="hidden" name="operation" value="update"/>
<input type="hidden" name="destination" value="checkout"/>
<input type="hidden" name="product_1_path" value="/basicsubscription1month"/>
<input type="hidden" name="product_2_path" value="/basicsubscription1monthrn"/>
<input type="hidden" name="product_2_quantity" value="0"/>
<input type="submit" value="Turn Off"/>
</form>
</div>
Анонимус 25.11.2014 19:01 # +1
gost 25.11.2014 22:48 # +1
bormand 25.11.2014 23:10 # +1
fxd
exru 24.12.2014 11:37 # 0