Skip to content

Commit 111a92f

Browse files
authored
Fixed javascript error on adminhtml login page caused by #2149 (#2624)
1 parent 1373cb5 commit 111a92f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/mage/adminhtml/form.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,4 +611,6 @@ function setPostcodeOptional(zipElement, country) {
611611
}
612612
}
613613

614-
varienGlobalEvents.attachEventHandler("address_country_changed", onAddressCountryChanged);
614+
if (typeof varienGlobalEvents != 'undefined') {
615+
varienGlobalEvents.attachEventHandler("address_country_changed", onAddressCountryChanged);
616+
}

0 commit comments

Comments
 (0)