BUG 8988 Menu del plugin "ProcessMaker Monitor" desaparece al crear un nuevo...
- El modulo de creacion de ambientes estan en el core y por lo tanto no estaba considerando que se muestren los menus del plugin - Se adiciono un iframe en el plugin para mostrar el modulo de creaciond e ambientes y se agrego una condicion al momento de redireccionar una vez finalzada la creacion en caso de que haya sido llamada desde ese nuevo iframe (un parent mas)
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
Ext.onReady(function(){
|
||||
|
||||
var fieldNameWS=new Ext.form.TextField({
|
||||
id: 'NW_TITLE',
|
||||
fieldLabel: _('ID_NAME'),
|
||||
id: 'NW_TITLE',
|
||||
fieldLabel: _('ID_NAME'),
|
||||
xtype:'textfield',
|
||||
value:'sample',
|
||||
width: 200,
|
||||
@@ -25,23 +25,23 @@ Ext.onReady(function(){
|
||||
}
|
||||
});
|
||||
nameWS = new Ext.form.FieldSet({
|
||||
title: 'New Workspace',
|
||||
title: 'New Workspace',
|
||||
items: [
|
||||
fieldNameWS
|
||||
]
|
||||
]
|
||||
});
|
||||
dbOptionsWS = new Ext.form.FieldSet({
|
||||
title: 'Database Options',
|
||||
items: [
|
||||
title: 'Database Options',
|
||||
items: [
|
||||
{
|
||||
id: 'AO_DB_WF',
|
||||
fieldLabel: 'Workflow Database',
|
||||
id: 'AO_DB_WF',
|
||||
fieldLabel: 'Workflow Database',
|
||||
xtype:'textfield',
|
||||
value:'wf_sample',
|
||||
width: 200,
|
||||
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'},
|
||||
allowBlank: false
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'AO_DB_RB',
|
||||
fieldLabel: 'Rbac Database',
|
||||
@@ -53,33 +53,33 @@ Ext.onReady(function(){
|
||||
},
|
||||
{
|
||||
id: 'AO_DB_RP',
|
||||
fieldLabel: 'Report Database',
|
||||
fieldLabel: 'Report Database',
|
||||
xtype:'textfield',
|
||||
value:'rp_sample',
|
||||
width: 200,
|
||||
autoCreate: {tag: 'input', type: 'text', size: '20', autocomplete: 'off', maxlength: '13'},
|
||||
allowBlank: false
|
||||
},
|
||||
{
|
||||
xtype: 'checkbox',
|
||||
{
|
||||
xtype: 'checkbox',
|
||||
fieldLabel: 'Drop database if exists',
|
||||
name: 'AO_DB_DROP',
|
||||
name: 'AO_DB_DROP',
|
||||
id: 'id-active'
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
wspaceAdmWS = new Ext.form.FieldSet({
|
||||
title: 'Workspace Administrator',
|
||||
items: [
|
||||
title: 'Workspace Administrator',
|
||||
items: [
|
||||
{
|
||||
id: 'NW_USERNAME',
|
||||
fieldLabel: 'Username',
|
||||
id: 'NW_USERNAME',
|
||||
fieldLabel: 'Username',
|
||||
xtype:'textfield',
|
||||
value:'admin',
|
||||
width: 200,
|
||||
allowBlank: false
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'NW_PASSWORD',
|
||||
fieldLabel: 'Password (admin)(Max. length 20):',
|
||||
@@ -91,7 +91,7 @@ Ext.onReady(function(){
|
||||
},
|
||||
{
|
||||
id: 'NW_PASSWORD2',
|
||||
fieldLabel: 'Re-type Password',
|
||||
fieldLabel: 'Re-type Password',
|
||||
xtype:'textfield',
|
||||
inputType:'password',
|
||||
value:'admin',
|
||||
@@ -100,10 +100,10 @@ Ext.onReady(function(){
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
formNewSite = new Ext.FormPanel({
|
||||
id:'formNewSite',
|
||||
id:'formNewSite',
|
||||
labelWidth: 250,
|
||||
labelAlign:'right',
|
||||
autoScroll: true,
|
||||
@@ -117,7 +117,7 @@ Ext.onReady(function(){
|
||||
allowBlank: false,
|
||||
resizable: true,
|
||||
msgTarget: 'side',
|
||||
align:'center'
|
||||
align:'center'
|
||||
},
|
||||
items:[
|
||||
nameWS,
|
||||
@@ -128,18 +128,18 @@ Ext.onReady(function(){
|
||||
{
|
||||
text: 'reset',
|
||||
handler: resetfields
|
||||
|
||||
|
||||
},
|
||||
{
|
||||
{
|
||||
text: 'Test',
|
||||
handler: TestSite
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
});
|
||||
|
||||
formNewSite.render(document.body);
|
||||
|
||||
|
||||
});
|
||||
function resetfields(){
|
||||
formNewSite.getForm().reset();
|
||||
@@ -174,8 +174,8 @@ Ext.onReady(function(){
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2){
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_CONFIRM_TO_CREATE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'site creating..'});
|
||||
@@ -199,8 +199,13 @@ Ext.onReady(function(){
|
||||
var data = Ext.util.JSON.decode(result.responseText);
|
||||
if( data.success ) {
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_SUCCESS') +" "+nwTitle+"<br/>"+ _('NEW_SITE_SUCCESS_CONFIRM')+"<br/>"+ _('NEW_SITE_SUCCESS_CONFIRMNOTE'), function(){
|
||||
nwTitle =formNewSite.getForm().findField('NW_TITLE').getValue();
|
||||
parent.parent.window.location="/sys"+nwTitle+"/en/green/login/login";
|
||||
nwTitle = formNewSite.getForm().findField('NW_TITLE').getValue();
|
||||
if (typeof window.parent.parent.parent != 'undefined') {
|
||||
parent.parent.parent.window.location="/sys"+nwTitle+"/en/green/login/login";
|
||||
}
|
||||
else {
|
||||
parent.parent.window.location="/sys"+nwTitle+"/en/green/login/login";
|
||||
}
|
||||
});
|
||||
} else {
|
||||
PMExt.error(_('ID_ERROR'), data.msg);
|
||||
@@ -212,10 +217,10 @@ Ext.onReady(function(){
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user