Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#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 Gerhard Waldemair, 2 years ago

Resolution: wontfix
Status: newclosed
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.

comment:2 by Torsten Riemer, 2 years ago

Milestone: modified-shop-2.0.8.0

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.