ISSUE-116 Added functionality for plugins with symlink paths
This commit is contained in:
@@ -260,21 +260,18 @@ function activeDeactive(){
|
||||
success: function ( result, request ) {
|
||||
var dataResponse = Ext.util.JSON.decode(result.responseText);
|
||||
|
||||
if (dataResponse.status) {
|
||||
if (dataResponse.status == "DISABLED-CODE") {
|
||||
PMExt.notify(_("ID_PLUGINS"), dataResponse.message, "error", 5);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var site = '';
|
||||
if (SYS_SKIN.substring(0,2) == 'ux') {
|
||||
if (typeof(dataResponse.success) != 'undefined' && dataResponse.success == true) {
|
||||
var site = '';
|
||||
if (SYS_SKIN.substring(0,2) == 'ux') {
|
||||
site = PROCESSMAKER_URL + '/main?st=admin&s='+parent._NODE_SELECTED;
|
||||
} else {
|
||||
} else {
|
||||
site = PROCESSMAKER_URL + "/setup/main?s="+parent._NODE_SELECTED;
|
||||
}
|
||||
parent.parent.location.href = site;
|
||||
} else {
|
||||
let errorMsg = dataResponse.error || _('ID_UNEXPECTED_ERROR_OCCURRED_PLEASE');
|
||||
PMExt.notify(_("ID_PLUGINS"), errorMsg, "error", 5);
|
||||
}
|
||||
parent.parent.location.href = site
|
||||
|
||||
return;
|
||||
|
||||
store.reload();
|
||||
|
||||
Reference in New Issue
Block a user