Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 08af1ae6 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: #25

Übergeordneter d63cb3ac
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -68,6 +68,12 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [ ...@@ -68,6 +68,12 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [
this.$Grid = new Grid(Container, { this.$Grid = new Grid(Container, {
columnModel : [ columnModel : [
{
header : ' ',
dataIndex: 'default',
dataType : 'node',
width : 40
},
{ {
header : QUILocale.get(lgQUIQQER, 'id'), header : QUILocale.get(lgQUIQQER, 'id'),
dataIndex: 'id', dataIndex: 'id',
...@@ -240,7 +246,7 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [ ...@@ -240,7 +246,7 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [
return this.$User.getAddressList().then(function (addressList) { return this.$User.getAddressList().then(function (addressList) {
let mail, phone, phoneText; let mail, phone, phoneText;
const buildPhoneText = function (entry) { const buildPhoneText = function (entry) {
if (entry.no === '') { if (entry.no === '') {
return; return;
...@@ -249,6 +255,18 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [ ...@@ -249,6 +255,18 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [
}; };
for (let i = 0, len = addressList.length; i < len; i++) { for (let i = 0, len = addressList.length; i < len; i++) {
if (addressList[i].default) {
addressList[i].default = new Element('span', {
html : '',
'class': 'fa fa-check'
});
} else {
addressList[i].default = new Element('span', {
html : '&nbsp;',
'class': ''
});
}
mail = addressList[i].mail; mail = addressList[i].mail;
phone = addressList[i].phone; phone = addressList[i].phone;
...@@ -265,7 +283,6 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [ ...@@ -265,7 +283,6 @@ define('package/quiqqer/customer/bin/backend/controls/customer/AddressGrid', [
addressList[i].phone = phoneText; addressList[i].phone = phoneText;
} catch (e) { } catch (e) {
} }
} }
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren