Skip to content
Code-Schnipsel Gruppen Projekte
Commit b74a2ffc erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev' of dev.quiqqer.com:quiqqer/qui into dev

Übergeordnete f62a6fcf 79b843f4
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -95,11 +95,11 @@ define('qui/controls/windows/Confirm', [
submitText = QUI.getAttribute('control-windows-confirm-submittext');
}
if (cancelButton.text === false) {
if (cancelButton && cancelButton.text === false) {
cancelButton.text = cancelText;
}
if (submitButton.text === false) {
if (submitButton && submitButton.text === false) {
submitButton.text = submitText;
}
......@@ -186,9 +186,9 @@ define('qui/controls/windows/Confirm', [
this.$Body = new Element('div.submit-body', {
html : '<div class="textbody">' +
'<h2 class="text">&nbsp;</h2>' +
'<div class="information">&nbsp;</div>' +
'</div>',
'<h2 class="text">&nbsp;</h2>' +
'<div class="information">&nbsp;</div>' +
'</div>',
styles: {
'float': 'left',
width : '100%'
......@@ -213,38 +213,41 @@ define('qui/controls/windows/Confirm', [
this.$Body.destroy();
}
this.$Buttons.set('html', '');
this.addButton(
new QUIButton({
name : 'cancel',
text : this.getAttribute('cancel_button').text,
textimage: this.getAttribute('cancel_button').textimage,
styles : {
'float': 'none'
},
events : {
onClick: this.cancel
}
})
);
this.addButton(
new QUIButton({
name : 'submit',
text : this.getAttribute('ok_button').text,
textimage: this.getAttribute('ok_button').textimage,
styles : {
'float': 'none'
},
events : {
onClick: function () {
self.submit();
if (this.getAttribute('cancel_button')) {
this.addButton(
new QUIButton({
name : 'cancel',
text : this.getAttribute('cancel_button').text,
textimage: this.getAttribute('cancel_button').textimage,
styles : {
'float': 'none'
},
events : {
onClick: this.cancel
}
}
})
);
})
);
}
if (this.getAttribute('ok_button')) {
this.addButton(
new QUIButton({
name : 'submit',
text : this.getAttribute('ok_button').text,
textimage: this.getAttribute('ok_button').textimage,
styles : {
'float': 'none'
},
events : {
onClick: function () {
self.submit();
}
}
})
);
}
this.parent();
},
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren