commit 6aab397f5ce535e47f0ae327fce8c120624bc1df
parent ec070a451f49d14bfd4082d8cbaa02dbeb0480a6
Author: Felicitus <felicitus@felicitus.org>
Date: Thu, 1 Nov 2012 23:40:19 +0100
Reworked the parameter cards to ExtJS 4.1
Diffstat:
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/setup/js/Cards/DatabaseParametersCard.MySQL.js b/src/setup/js/Cards/DatabaseParametersCard.MySQL.js
@@ -128,6 +128,7 @@ Ext.define('PartKeeprSetup.DatabaseParametersCard.MySQL', {
items: [
this.showHintCheckbox,
{
+ xtype: 'container',
border: false,
style: 'overflow: auto;',
width: "450px",
@@ -159,18 +160,18 @@ Ext.define('PartKeeprSetup.DatabaseParametersCard.MySQL', {
host = "<YOUR-CONNECTING-IP>";
}
- this.createHintTemplate.overwrite(Ext.get("mysql-parameters-hint"), {
+ this.createHintTemplate.overwrite(Ext.getCmp("mysql-parameters-hint").getEl(), {
localhost: host,
user: this.username.getValue(),
password: this.password.getValue(),
dbname: this.databaseName.getValue()
});
- this.masterTemplate.append(Ext.get("mysql-parameters-hint"));
+ this.masterTemplate.append(Ext.getCmp("mysql-parameters-hint").getEl());
} else {
- this.masterTemplate.overwrite(Ext.get("mysql-parameters-hint"));
+ this.masterTemplate.overwrite(Ext.getCmp("mysql-parameters-hint").getEl());
}
-
+
if (this.hostname.getValue() !== "" && this.username.getValue() !== "" && this.password.getValue() !== "" &&
this.databaseName.getValue() !== "") {
diff --git a/src/setup/js/Cards/DatabaseParametersCard.PostgreSQL.js b/src/setup/js/Cards/DatabaseParametersCard.PostgreSQL.js
@@ -128,6 +128,7 @@ Ext.define('PartKeeprSetup.DatabaseParametersCard.PostgreSQL', {
items: [
this.showHintCheckbox,
{
+ xtype: 'container',
border: false,
style: 'overflow: auto;',
width: "450px",
@@ -159,16 +160,16 @@ Ext.define('PartKeeprSetup.DatabaseParametersCard.PostgreSQL', {
host = "<YOUR-CONNECTING-IP>";
}
- this.createHintTemplate.overwrite(Ext.get("postgresql-parameters-hint"), {
+ this.createHintTemplate.overwrite(Ext.get("postgresql-parameters-hint").getEl(), {
localhost: host,
user: this.username.getValue(),
password: this.password.getValue(),
dbname: this.databaseName.getValue()
});
- this.masterTemplate.append(Ext.get("postgresql-parameters-hint"));
+ this.masterTemplate.append(Ext.getCmp("postgresql-parameters-hint").getEl());
} else {
- this.masterTemplate.overwrite(Ext.get("postgresql-parameters-hint"));
+ this.masterTemplate.overwrite(Ext.getCmp("postgresql-parameters-hint").getEl());
}
if (this.hostname.getValue() !== "" && this.username.getValue() !== "" && this.password.getValue() !== "" &&