BUG 9688 Plugin Updates dont work when proxy is required SOLVED

- There are not way to set the proxy to use
- Added settings for the proxy in ProcessMaker
This commit is contained in:
Julio Cesar Laura
2012-09-19 14:48:38 -04:00
parent 7675e3ef82
commit c312bc95e5
14 changed files with 691 additions and 249 deletions

View File

@@ -1,5 +1,5 @@
Ext.onReady(function(){
var cmbSkins = new Ext.form.ComboBox({
fieldLabel : _('ID_DEFAULT_SKIN'),
id : 'default_skin',
@@ -11,7 +11,7 @@ Ext.onReady(function(){
mode : 'local',
emptyText : _('ID_SELECT'),
valueField : 'ID',
displayField : 'NAME',
displayField : 'NAME',
selectOnFocus : true,
editable : true,
triggerAction: 'all',
@@ -41,7 +41,7 @@ Ext.onReady(function(){
mode : 'local',
emptyText : _('ID_SELECT'),
valueField : 'ID',
displayField : 'NAME',
displayField : 'NAME',
selectOnFocus : true,
editable : true,
triggerAction: 'all',
@@ -70,7 +70,7 @@ Ext.onReady(function(){
mode : 'local',
emptyText : _('ID_SELECT'),
valueField : 'ID',
displayField : 'NAME',
displayField : 'NAME',
selectOnFocus : true,
editable : true,
triggerAction: 'all',
@@ -112,7 +112,7 @@ Ext.onReady(function(){
});
xfieldsBelow = new Ext.form.FieldSet({
title: '',
title: _('ID_PREFERENCES'),
items : [
cmbSkins,
cmbLang,
@@ -127,6 +127,65 @@ Ext.onReady(function(){
]
});
var proxyConfigurationFields = new Ext.form.FieldSet({
title: _('ID_PROXY_SETTINGS'),
items: [
{
xtype: 'textfield',
id: 'proxy_host',
name: 'proxy_host',
fieldLabel: _('ID_PROXY_HOST'),
width: 200,
value: sysConf.proxy_host,
listeners:{
change: function(){
changeSettings();
}
}
},
{
xtype: 'numberfield',
id: 'proxy_port',
name: 'proxy_port',
fieldLabel: _('ID_PROXY_PORT'),
width: 100,
value: sysConf.proxy_port,
listeners:{
change: function(){
changeSettings();
}
}
},
{
xtype: 'textfield',
id: 'proxy_user',
name: 'proxy_user',
fieldLabel: _('ID_PROXY_USER'),
width: 200,
value: sysConf.proxy_user,
listeners:{
change: function(){
changeSettings();
}
}
},
{
xtype: 'textfield',
inputType: 'password',
id: 'proxy_pass',
name: 'proxy_pass',
fieldLabel: _('ID_PROXY_PASSWORD'),
width: 200,
value: sysConf.proxy_pass,
listeners:{
change: function(){
changeSettings();
}
}
}
]
});
var frm = new Ext.FormPanel({
title: '&nbsp',
id:'frm',
@@ -137,24 +196,24 @@ Ext.onReady(function(){
bodyStyle:'padding:5px',
waitMsgTarget : true,
frame: true,
defaults: {
allowBlank: false,
msgTarget: 'side',
align:'center'
},
items:[ xfieldsUp, xfieldsBelow ],
items:[ xfieldsUp, xfieldsBelow, proxyConfigurationFields ],
buttons : [saveButton]
});
//render to process-panel
frm.render(document.body);
}); //end onready()
function saveSettings()
function saveSettings()
{
Ext.getCmp('frm').getForm().submit( {
Ext.getCmp('frm').getForm().submit( {
url : '../adminProxy/saveSystemConf',
waitMsg : _('ID_SAVING_PROCESS'),
timeout : 36000,
@@ -178,7 +237,7 @@ function saveSettings()
},
failure: function(obj, resp) {
PMExt.error( _('ID_ERROR'), resp.result.message);
}
}
});
}