This commit is contained in:
qronald
2017-05-18 08:14:36 -04:00
parent 4c97a3451d
commit 0becd78aa7
2 changed files with 39 additions and 29 deletions

View File

@@ -29,6 +29,11 @@ $headPublisher->addExtJsScript( 'setup/pluginsMain', false );
$headPublisher->assign( "PROCESSMAKER_URL", "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN ); $headPublisher->assign( "PROCESSMAKER_URL", "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN );
$headPublisher->assign( "SYS_SKIN", SYS_SKIN ); $headPublisher->assign( "SYS_SKIN", SYS_SKIN );
$oPluginRegistry = &PMPluginRegistry::getSingleton();
if ($oPluginRegistry->getStatusPlugin('pmWorkspaceManagement') == "enabled") {
$headPublisher = $oPluginRegistry->executeMethod('pmWorkspaceManagement', 'disableButtonsPluginMain', $headPublisher);
}
if (isset( $_SESSION['__PLUGIN_ERROR__'] )) { if (isset( $_SESSION['__PLUGIN_ERROR__'] )) {
$headPublisher->assign( '__PLUGIN_ERROR__', $_SESSION['__PLUGIN_ERROR__'] ); $headPublisher->assign( '__PLUGIN_ERROR__', $_SESSION['__PLUGIN_ERROR__'] );
unset( $_SESSION['__PLUGIN_ERROR__'] ); unset( $_SESSION['__PLUGIN_ERROR__'] );

View File

@@ -109,35 +109,40 @@ Ext.onReady(function(){
selModel:selModel, selModel:selModel,
store: store, store: store,
tbar:[{ tbar: [
text : _('ID_IMPORT'), {
iconCls: 'silk-add', text: _('ID_IMPORT'),
icon : '/images/import.gif', iconCls: 'silk-add',
handler: importProcess icon: '/images/import.gif',
},{ handler: importProcess,
xtype: 'tbseparator' disabled: typeof ID_IMPORT_DISABLED === 'undefined' ? false : ID_IMPORT_DISABLED
}, },
{ {
id : 'setup', xtype: 'tbseparator'
text : _('ID_CONFIGURE'), },
iconCls: 'silk-add', {
icon : '/images/options.png', id: 'setup',
handler: configure text: _('ID_CONFIGURE'),
}, iconCls: 'silk-add',
{ icon: '/images/options.png',
text : _('ID_STATUS'), handler: configure
id : 'activator', },
icon : '', {
iconCls : 'silk-add', text: _('ID_STATUS'),
handler : activeDeactive, id: 'activator',
disabled: true icon: '',
},{ iconCls: 'silk-add',
text : _('ID_DELETE'), handler: activeDeactive,
iconCls: 'silk-add', disabled: true
icon : '/images/delete-16x16.gif', },
handler: deletePlugin {
} text: _('ID_DELETE'),
], iconCls: 'silk-add',
icon: '/images/delete-16x16.gif',
handler: deletePlugin,
disabled: typeof ID_DELETE_DISABLED === 'undefined' ? false : ID_DELETE_DISABLED
}
],
listeners: { listeners: {
render: function(){ render: function(){
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID')}); this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID')});