Use the same layout mechanism used as in the panel using elementary

layout support in different dialogs. Fixes #1358.
This commit is contained in:
Ashesh Vashi
2016-06-20 12:46:30 +05:30
parent f1dd39e5e9
commit 3350eaceab
9 changed files with 96 additions and 74 deletions

View File

@@ -12,17 +12,19 @@ define(
if (!alertify.aboutDialog) {
alertify.dialog('aboutDialog', function factory() {
return {
main:function(title, message) {
main: function(title, message) {
this.set('title', title);
this.message = message;
},
setup:function() {
setup: function() {
return {
buttons:[{ text: "OK", key: 27, className: "btn btn-primary" }],
options: { modal: 0, resizable: true }
options: {modal: 0, resizable: true}
};
},
build:function() {},
build: function() {
alertify.pgDialogBuild.apply(this);
},
prepare:function() {
this.setContent(this.message);
}