PM-295 Plugin Enterprise que sea parte del core IMPROVEMENT
- change redirect. - A validation was add in enable plugin.
This commit is contained in:
@@ -259,7 +259,7 @@ class PMPluginRegistry
|
|||||||
$this->registerFolder( $sNamespace, $sNamespace, $detail->sPluginFolder );
|
$this->registerFolder( $sNamespace, $sNamespace, $detail->sPluginFolder );
|
||||||
//register the default directory, later we can have more
|
//register the default directory, later we can have more
|
||||||
$this->_aPluginDetails[$sNamespace]->enabled = true;
|
$this->_aPluginDetails[$sNamespace]->enabled = true;
|
||||||
$oPlugin = new $detail->sClassName( $detail->sNamespace, $detail->sFilename );
|
$oPlugin = $detail;
|
||||||
$this->_aPlugins[$detail->sNamespace] = $oPlugin;
|
$this->_aPlugins[$detail->sNamespace] = $oPlugin;
|
||||||
if (method_exists( $oPlugin, 'enable' )) {
|
if (method_exists( $oPlugin, 'enable' )) {
|
||||||
$oPlugin->enable();
|
$oPlugin->enable();
|
||||||
|
|||||||
@@ -732,7 +732,6 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sw == 1) {
|
if (sw == 1) {
|
||||||
var pm = PROCESSMAKER_URL;
|
|
||||||
uploadForm.getForm().submit({
|
uploadForm.getForm().submit({
|
||||||
url: "../enterprise/addonsStoreAction",
|
url: "../enterprise/addonsStoreAction",
|
||||||
params: {
|
params: {
|
||||||
@@ -740,10 +739,8 @@ Ext.onReady(function() {
|
|||||||
},
|
},
|
||||||
waitMsg: _('ID_UPDATING_LICENSE_MSG'),
|
waitMsg: _('ID_UPDATING_LICENSE_MSG'),
|
||||||
success: function (form, o) {
|
success: function (form, o) {
|
||||||
//Ext.MessageBox.alert(_('ID_INFORMATION'), _('ID_SUCCESSFULLY_UPLOADED'));
|
|
||||||
//parent.parent.window.location.href = newLocation();
|
|
||||||
Ext.MessageBox.alert(_('ID_INFORMATION'), _('ID_SUCCESSFULLY_UPLOADED'), function () {
|
Ext.MessageBox.alert(_('ID_INFORMATION'), _('ID_SUCCESSFULLY_UPLOADED'), function () {
|
||||||
parent.parent.window.location.href = PROCESSMAKER_URL + (SYS_SKIN.substring(0,2) == 'ux')? "/main/login" :"/setup/login/login";
|
parent.parent.window.location.href = newLocation()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
failure: function (form, o) {
|
failure: function (form, o) {
|
||||||
|
|||||||
Reference in New Issue
Block a user