Modify ↓
#2526 closed Aufgabe (wontfix)
Funktion load_state() für Bundesländer spezifizieren
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Shop | Version: | 2.0.7.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Karl hat hier
Lieferland wählen Antwort #14
dargelegt, daß es mit der Landesauswahl (wegen OSS) zu Problemen kommen kann, je nachdem wo die Box für die Auswahl im HTML positioniert ist.
Ich denke man sollte deshalb $(this) an die Funktion load_state() übergeben.
Statt diesem
$("select[name='country']").change(function() { load_state(); });
das
$("select[name='country']").change(function() { load_state($(this)); });
und in der Funktion statt jenem
function load_state() {
var selection = $("select[name='country']").val();
jenes
function load_state(sel) {
//var selection = $("select[name='country']").val();
var selection = $(sel).val();
Gruß,
noRiddle
Attachments (0)
Change History (2)
comment:1 by , 2 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
comment:2 by , 2 years ago
| Milestone: | modified-shop-2.0.8.0 |
|---|
Note:
See TracTickets
for help on using tickets.

var selection = $("#addressbook select[name='country'], #checkout_address select[name='country'], #create_account select[name='country']").val();löst das Problem auch, da die Forms alle eine ID haben.
in der kommenden Version sind die Templates darauf umgebaut.