Upgrade JS files

This commit is contained in:
Fernando Ontiveros
2025-04-04 00:21:28 +00:00
parent f9cd9a035b
commit 884e67f883
11 changed files with 16 additions and 122 deletions

View File

@@ -854,13 +854,12 @@ Ext.onReady ( function() {
});
//Layout Resizing
/*----------------------------------********---------------------------------*/
if (typeof valueFilterStatus != 'undefined') {
if (valueFilterStatus != '') {
storeCases.setBaseParam('filterStatus', valueFilterStatus);
}
}
/*----------------------------------********---------------------------------*/
storeCases.on('load',function(){var viewport = Ext.getCmp("viewportcases");viewport.doLayout();})
// creating the button for filters
@@ -1069,7 +1068,6 @@ Ext.onReady ( function() {
filterStatus = [];
}
/*----------------------------------********---------------------------------*/
var comboFilterStatus = new Ext.form.ComboBox({
width : 180,
boxMaxWidth : 200,
@@ -1102,7 +1100,6 @@ Ext.onReady ( function() {
},
iconCls: 'no-icon'
});
/*----------------------------------********---------------------------------*/
var btnSelectAll = new Ext.Button ({
text: _('CHECK_ALL'),
@@ -2667,11 +2664,9 @@ Ext.onReady ( function() {
suggestProcess.setValue("");
comboStatus.setValue("");
comboColumnSearch.setValue("APP_TITLE");
/*----------------------------------********---------------------------------*/
if (typeof valueFilterStatus !== 'undefined') {
comboFilterStatus.setValue(valueFilterStatus);
}
/*----------------------------------********---------------------------------*/
}
function reassign(){
storeReassignCases.removeAll();

View File

@@ -36,15 +36,11 @@ emailServer.application = {
//Data
var p;
/*----------------------------------********---------------------------------*/
if (Ext.getCmp("chkEmailServerDefault").checked) {
/*----------------------------------********---------------------------------*/
var emailDefault = 1;
/*----------------------------------********---------------------------------*/
} else {
var emailDefault = 0;
}
/*----------------------------------********---------------------------------*/
var typeEmailEngine = Ext.getCmp("cboEmailEngine").getValue();
@@ -69,7 +65,6 @@ emailServer.application = {
emailServerDefault: emailDefault
};
} else if (typeEmailEngine === "IMAP") {
/*----------------------------------********---------------------------------*/
var rdoGrpOption = Ext.getCmp("rdoGrpSmtpSecure").getValue();
var smtpSecure = rdoGrpOption.getGroupValue();
@@ -91,7 +86,6 @@ emailServer.application = {
mailTo: Ext.getCmp("txtMailTo").getValue(),
emailServerDefault: emailDefault
};
/*----------------------------------********---------------------------------*/
} else {
//MAIL
p = {
@@ -211,9 +205,7 @@ emailServer.application = {
Ext.getCmp("textClientId").setValue("");
Ext.getCmp("textClientSecret").setValue("");
/*----------------------------------********---------------------------------*/
Ext.getCmp("chkEmailServerDefault").setValue(false);
/*----------------------------------********---------------------------------*/
winData.setTitle(_("ID_EMAIL_SERVER_NEW"));
winData.setDisabled(false);
@@ -255,15 +247,11 @@ emailServer.application = {
Ext.getCmp("textClientId").setValue(record.get("OAUTH_CLIENT_ID"));
Ext.getCmp("textClientSecret").setValue(record.get("OAUTH_CLIENT_SECRET"));
/*----------------------------------********---------------------------------*/
if (parseInt(record.get("MESS_DEFAULT")) == 1) {
/*----------------------------------********---------------------------------*/
Ext.getCmp("chkEmailServerDefault").setValue(true);
/*----------------------------------********---------------------------------*/
} else {
Ext.getCmp("chkEmailServerDefault").setValue(false);
}
/*----------------------------------********---------------------------------*/
winData.setTitle(_("ID_EMAIL_SERVER_EDIT"));
winData.setDisabled(false);
@@ -286,9 +274,8 @@ emailServer.application = {
Ext.getCmp("button2Continue").setVisible(false);
Ext.getCmp("btnTest").setVisible(true);
Ext.getCmp("btnSave").setVisible(true);
/*----------------------------------********---------------------------------*/
Ext.getCmp("chkEmailServerDefault").setVisible(true);
/*----------------------------------********---------------------------------*/
if (cboEmailEngine === "PHPMAILER") {
Ext.getCmp("txtServer").setVisible(true);
Ext.getCmp("txtPort").setVisible(true);
@@ -319,7 +306,6 @@ emailServer.application = {
Ext.getCmp("textClientId").allowBlank = true;
Ext.getCmp("textClientSecret").allowBlank = true;
} else if (cboEmailEngine === "IMAP") {
/*----------------------------------********---------------------------------*/
Ext.getCmp("txtServer").setVisible(true);
Ext.getCmp("txtPort").setVisible(true);
try {
@@ -348,7 +334,6 @@ emailServer.application = {
Ext.getCmp("txtAccountFrom").allowBlank = false;
Ext.getCmp("textClientId").allowBlank = true;
Ext.getCmp("textClientSecret").allowBlank = true;
/*----------------------------------********---------------------------------*/
} else if (cboEmailEngine === "GMAILAPI") {
Ext.getCmp("txtServer").setVisible(true);
Ext.getCmp("txtServer").setValue("smtp.gmail.com");
@@ -631,9 +616,7 @@ emailServer.application = {
data: [
["PHPMAILER", "SMTP (PHPMailer)"],
/*----------------------------------********---------------------------------*/
["IMAP", "SMTP - IMAP (PHPMailer)"],
/*----------------------------------********---------------------------------*/
["MAIL", "Mail (PHP)"],
["GMAILAPI", "GMAIL API SMTP-IMAP"],
["OFFICE365API", "OFFICE 365 API SMTP-IMAP"]
@@ -1020,9 +1003,7 @@ emailServer.application = {
rdoGrpSmtpSecure,
chkSendTestMail,
txtMailTo
/*----------------------------------********---------------------------------*/
, chkEmailServerDefault
/*----------------------------------********---------------------------------*/
]
});
@@ -1303,22 +1284,14 @@ emailServer.application = {
var arrayAux1 = [];
/*----------------------------------********---------------------------------*/
if (EMAILSERVER_LICENSED) {
arrayAux1.push(btnNew);
arrayAux1.push("-");
}
/*----------------------------------********---------------------------------*/
arrayAux1.push(btnNew);
arrayAux1.push("-");
arrayAux1.push(btnEdit);
/*----------------------------------********---------------------------------*/
arrayAux1.push(btnDelete);
arrayAux1.push("->");
arrayAux1.push(txtSearch);
arrayAux1.push(btnTextClear);
arrayAux1.push(btnSearch);
/*----------------------------------********---------------------------------*/
var grdpnlMain = new Ext.grid.GridPanel({
id: "grdpnlMain",
@@ -1334,9 +1307,7 @@ emailServer.application = {
tbar: arrayAux1,
/*----------------------------------********---------------------------------*/
bbar: pagingData,
/*----------------------------------********---------------------------------*/
title: _("ID_EMAIL_SERVER_TITLE"),
border: false,
@@ -1362,9 +1333,7 @@ emailServer.application = {
arrayAux2.push(btnEdit);
/*----------------------------------********---------------------------------*/
arrayAux2.push(btnDelete);
/*----------------------------------********---------------------------------*/
var mnuContext = new Ext.menu.Menu({
id: "mnuContext",

View File

@@ -334,9 +334,7 @@ Ext.onReady(function () {
disabled: true,
inputValue: 'always'
}
}
/*----------------------------------********---------------------------------*/
, {
}, {
xtype: 'booleancolumn',
header: _('ID_INDEX'),
dataIndex: 'field_index',
@@ -351,7 +349,6 @@ Ext.onReady(function () {
inputValue: 'always'
}
}
/*----------------------------------********---------------------------------*/
];
//if permissions plugin is enabled
@@ -1100,14 +1097,12 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldNull, fieldPrimaryKey, f
fieldPrimaryKey.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (swI == 1) {
fieldIndex.enable();
} else {
fieldIndex.disable();
fieldIndex.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (swAI == 1) {
fieldInc.enable();

View File

@@ -401,9 +401,7 @@ Ext.onReady(function () {
width: 50,
align: 'right',
editor: sizeField
}
/*----------------------------------********---------------------------------*/
, {
}, {
xtype: 'booleancolumn',
header: _('ID_INDEX'),
dataIndex: 'field_index',
@@ -418,7 +416,6 @@ Ext.onReady(function () {
inputValue: 'always'
}
}
/*----------------------------------********---------------------------------*/
];
function validateFieldSizeAutoincrement(valueType, defaultValue) {
@@ -1340,14 +1337,14 @@ function editorFieldsEnableDisable(fieldTypeValue, fieldIndex, fieldInc, sizeEdi
swAI = 0;
swI = 0;
}
/*----------------------------------********---------------------------------*/
if (swI == 1) {
fieldIndex.enable();
} else {
fieldIndex.disable();
fieldIndex.setValue(false);
}
/*----------------------------------********---------------------------------*/
if (typeof fieldInc !== 'undefined') {
if (swAI == 1) {
fieldInc.enable();

View File

@@ -160,9 +160,7 @@ Ext.onReady(function(){
{name : 'CASES_COUNT_COMPLETED', type:'float'},
{name : 'CASES_COUNT_CANCELLED', type:'float'},
{name : 'PROJECT_TYPE', type:'string'}
/*----------------------------------********---------------------------------*/
,{name : "PRO_TYPE_PROCESS", type: "string"}
/*----------------------------------********---------------------------------*/
,{name : "PRO_UPDATE_DATE_LABEL"}
]
}),
@@ -318,7 +316,7 @@ Ext.onReady(function(){
exportProcess();
}
};
/*----------------------------------********---------------------------------*/
if (isGranularFeature) {
granularExportProcessOption = {
xtype: "tbsplit",
@@ -353,11 +351,9 @@ Ext.onReady(function(){
};
exportProcessOption = granularExportProcessOption;
} else {
/*----------------------------------********---------------------------------*/
exportProcessOption = normalExportProcessOption;
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
//End code export - exportGranular (handle)
var proSelModel = new Ext.grid.CheckboxSelectionModel({
listeners: {
@@ -417,9 +413,7 @@ Ext.onReady(function(){
,{header: _('ID_CANCELLED'), dataIndex: 'CASES_COUNT_CANCELLED', width: 50, align:'right', sortable: false}
,{header: _('ID_TOTAL_CASES'), dataIndex: 'CASES_COUNT', width: 70, renderer:function(v){return "<b>"+v+"</b>";}, align:'right', sortable: false}
,{header: _('ID_PRO_DEBUG'), dataIndex: 'PRO_DEBUG_LABEL', width: 30}
/*----------------------------------********---------------------------------*/
,{header: _("ID_TYPE_PROCESS"), dataIndex: "PRO_TYPE_PROCESS", width: 70}
/*----------------------------------********---------------------------------*/
,{header: _("ID_LAN_UPDATE_DATE"), dataIndex: "PRO_UPDATE_DATE_LABEL", width: 90}
]
}),
@@ -515,7 +509,7 @@ Ext.onReady(function(){
var activator = Ext.getCmp('activator');
activator.setDisabled(false);
/*----------------------------------********---------------------------------*/
if(rowSelected.data.PROJECT_TYPE === 'bpmn' && isGranularFeature){
processesGrid.getTopToolbar().remove('export');
processesGrid.getTopToolbar().insert(6, granularExportProcessOption);
@@ -525,7 +519,7 @@ Ext.onReady(function(){
processesGrid.getTopToolbar().insert(6, normalExportProcessOption);
processesGrid.getTopToolbar().doLayout();
}
/*----------------------------------********---------------------------------*/
Ext.ComponentMgr.get("export").setDisabled(false);
if( rowSelected.data.PRO_STATUS == 'ACTIVE' ){
@@ -583,7 +577,6 @@ Ext.onReady(function(){
function onMessageContextMenu(grid, rowIndex, e) {
e.stopEvent();
var coords = e.getXY();
/*----------------------------------********---------------------------------*/
var rowSelected = grid.getStore().getAt(rowIndex);
if(rowSelected.data.PROJECT_TYPE === 'bpmn' && isGranularFeature) {
messageContextMenu.remove('export-menu');
@@ -592,7 +585,6 @@ Ext.onReady(function(){
messageContextMenu.remove('export-menu');
messageContextMenu.addItem(normalMenuExportOption);
}
/*----------------------------------********---------------------------------*/
messageContextMenu.showAt([coords[0], coords[1]]);
}
//code export - exportGranular (handler)
@@ -607,7 +599,6 @@ Ext.onReady(function(){
}
};
/*----------------------------------********---------------------------------*/
if (isGranularFeature) {
granularMenuExportOption = {
id: 'export-menu',
@@ -636,11 +627,8 @@ Ext.onReady(function(){
};
menuExportOption = granularMenuExportOption;
} else {
/*----------------------------------********---------------------------------*/
menuExportOption = normalMenuExportOption;
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
//End code export - exportGranular (handler)
var arrayContextMenuOption = [
@@ -2096,9 +2084,7 @@ importProcess = function()
switch (fileExtension) {
case "pm":
case "pmx":
/*----------------------------------********---------------------------------*/
case "pmx2":
/*----------------------------------********---------------------------------*/
var uploader = Ext.getCmp("uploader");
if (uploader.getForm().isValid()) {

View File

@@ -173,7 +173,6 @@ try {
* you can change it or redirect to another page
* i.e. G::header("Location: http://www.processmaker.com");
*/
/*----------------------------------********---------------------------------*/
$_POST['__notValidateThisFields__'] = (isset( $_POST['__notValidateThisFields__'] ) && $_POST['__notValidateThisFields__'] != '') ? $_POST['__notValidateThisFields__'] : $_POST['DynaformRequiredFields'];
if ($missing_req_values = $oForm->validateRequiredFields( $_POST['form'], Bootstrap::json_decode( stripslashes( $_POST['__notValidateThisFields__'] ) ) )) {
$fieldsRequired = Bootstrap::json_decode(str_replace(array("%27", "%39"), array("\"", "'"), $_POST["DynaformRequiredFields"]));
@@ -196,7 +195,7 @@ try {
G::RenderPage( 'publish', 'blank' );
exit( 0 );
}
/*----------------------------------********---------------------------------*/
$_SESSION["__webEntrySuccess__"] = $aMessage;
G::header("location:{weTitle}Info.php");
} catch (Exception $e) {

View File

@@ -412,7 +412,6 @@ Ext.onReady(function () {
hidden: !(__SYSTEM_UTC_TIME_ZONE__ == 1)
});
/*----------------------------------********---------------------------------*/
storeLanguage = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: "usersAjax",
@@ -446,7 +445,6 @@ Ext.onReady(function () {
mode : 'local',
hidden : !(LANGUAGE_MANAGEMENT == 1)
});
/*----------------------------------********---------------------------------*/
var informationFields = new Ext.form.FieldSet({
title : _('ID_PERSONAL_INFORMATION'),
@@ -560,12 +558,9 @@ Ext.onReady(function () {
comboStatus,
comboRole,
cboTimeZone
/*----------------------------------********---------------------------------*/
,comboLanguage
/*----------------------------------********---------------------------------*/
]
});
/*----------------------------------********---------------------------------*/
var costByHour = new Ext.form.FieldSet({
title : _('ID_COSTS'),
items : [
@@ -591,7 +586,6 @@ Ext.onReady(function () {
}
]
});
/*----------------------------------********---------------------------------*/
var passwordFields = new Ext.form.FieldSet({
title : _('ID_CHANGE_PASSWORD'),
items : [
@@ -836,9 +830,7 @@ Ext.onReady(function () {
items : [
csrfToken,
informationFields,
/*----------------------------------********---------------------------------*/
costByHour,
/*----------------------------------********---------------------------------*/
passwordFields,
accountOptions,
profileFields,
@@ -1002,7 +994,6 @@ Ext.onReady(function () {
}
]
});
/*----------------------------------********---------------------------------*/
costByHour2 = new Ext.form.FieldSet({
title : _('ID_COSTS'),
items : [
@@ -1021,7 +1012,6 @@ Ext.onReady(function () {
]
});
/*----------------------------------********---------------------------------*/
passwordFields2 = new Ext.form.FieldSet({
title : _('ID_PASSWORD'),
items : [
@@ -1070,9 +1060,7 @@ Ext.onReady(function () {
box2,
//profileFields2,
informationFields2,
/*----------------------------------********---------------------------------*/
costByHour2,
/*----------------------------------********---------------------------------*/
//passwordFields2,
preferencesFields2
],
@@ -1264,13 +1252,11 @@ function saveUser()
return false;
}
}
/*----------------------------------********---------------------------------*/
if (!Ext.getCmp('USR_COST_BY_HOUR').isValid()) {
PMExt.warning(_('ID_ERROR'), _('ID_INVALID_VALUE_EXPECTING_POSITIVE_DECIMAL', _('ID_COST_BY_HOUR')));
Ext.getCmp('USR_COST_BY_HOUR').focus(true,10);
return false;
}
/*----------------------------------********---------------------------------*/
if (USR_UID == '00000000000000000000000000000001') {
if (Ext.getCmp('USR_ROLE').getValue() != PROCESSMAKER_ADMIN) {
@@ -1400,12 +1386,10 @@ function loadData()
});
comboRole.store.load();
/*----------------------------------********---------------------------------*/
comboLanguage.store.on("load", function (store) {
comboLanguage.setValue(store.getAt(1).get("LAN_ID"));
});
comboLanguage.store.load();
/*----------------------------------********---------------------------------*/
setPreferencesData(false, null);
}
@@ -1436,10 +1420,8 @@ function loadUserData() {
USR_POSITION: data.user.USR_POSITION,
USR_DUE_DATE: data.user.USR_DUE_DATE,
USR_STATUS: data.user.USR_STATUS,
/*----------------------------------********---------------------------------*/
USR_COST_BY_HOUR: data.user.USR_COST_BY_HOUR,
USR_UNIT_COST: data.user.USR_UNIT_COST,
/*----------------------------------********---------------------------------*/
USR_LOGGED_NEXT_TIME: data.user.USR_LOGGED_NEXT_TIME
});
@@ -1464,11 +1446,9 @@ function loadUserData() {
Ext.getCmp("USR_STATUS2").setText(_('ID_' + data.user.USR_STATUS));
Ext.getCmp("USR_ROLE2").setText(data.user.USR_ROLE_NAME);
Ext.getCmp("USR_TIME_ZONE2").setText((data.user.USR_TIME_ZONE != "") ? data.user.USR_TIME_ZONE : SYSTEM_TIME_ZONE);
/*----------------------------------********---------------------------------*/
Ext.getCmp("USR_DEFAULT_LANG2").setText(data.user.USR_DEFAULT_LANG_NAME);
Ext.getCmp("USR_COST_BY_HOUR2").setText(data.user.USR_COST_BY_HOUR);
Ext.getCmp("USR_UNIT_COST2").setText(data.user.USR_UNIT_COST);
/*----------------------------------********---------------------------------*/
Ext.getCmp("USR_CALENDAR2").setText(data.user.CALENDAR_NAME);
Ext.getCmp("PREF_DEFAULT_MAIN_MENU_OPTION2").setText(data.user.MENUSELECTED_NAME);
Ext.getCmp("PREF_DEFAULT_CASES_MENUSELECTED2").setText(data.user.CASES_MENUSELECTED_NAME);
@@ -1509,11 +1489,10 @@ function loadUserData() {
cboTimeZone.setValue((data.user.USR_TIME_ZONE != "") ? data.user.USR_TIME_ZONE : SYSTEM_TIME_ZONE);
/*----------------------------------********---------------------------------*/
comboLanguage.store.on("load", function (store) {
comboLanguage.setValue(data.user.USR_DEFAULT_LANG);
});
/*----------------------------------********---------------------------------*/
setPreferencesData(true, data);
previousUsername = Ext.getCmp("USR_USERNAME").getValue();
@@ -1536,9 +1515,7 @@ function loadUserData() {
storeRole.load();
/*----------------------------------********---------------------------------*/
storeLanguage.load();
/*----------------------------------********---------------------------------*/
},
failure: function (r, o) {
//viewport.getEl().unmask();

View File

@@ -191,9 +191,7 @@ if (getField('OP_OBJ_TYPE').value=='OUTPUT') {
showRowById( 'OP_ACTION' );
}
if (getField('OP_OBJ_TYPE').value=='CASES_NOTES'
/*----------------------------------********---------------------------------*/
|| getField('OP_OBJ_TYPE').value=='SUMMARY_FORM')
/*----------------------------------********---------------------------------*/
{
hideRowById( 'ALL' );
hideRowById( 'DYNAFORMS' );
@@ -235,9 +233,7 @@ leimnud.event.add(document.getElementById('form[OP_OBJ_TYPE]'), 'change', functi
showRowById( 'OP_ACTION' );
}
if (getField('OP_OBJ_TYPE').value=='CASES_NOTES'
/*----------------------------------********---------------------------------*/
|| getField('OP_OBJ_TYPE').value=='SUMMARY_FORM')
/*----------------------------------********---------------------------------*/
{
hideRowById( 'ALL' );
hideRowById( 'DYNAFORMS' );

View File

@@ -174,9 +174,7 @@ leimnud.event.add(getField('OP_OBJ_TYPE'), 'change', function() {
showRowById('OP_ACTION');
break;
case 'CASES_NOTES':
/*----------------------------------********---------------------------------*/
case 'SUMMARY_FORM':
/*----------------------------------********---------------------------------*/
getField('ALL').value = '';
getField('DYNAFORMS').value = '';
getField('INPUTS').value = '';
@@ -252,9 +250,7 @@ switch (vValue) {
showRowById('OP_ACTION');
break;
case 'CASES_NOTES':
/*----------------------------------********---------------------------------*/
case 'SUMMARY_FORM':
/*----------------------------------********---------------------------------*/
getField('ALL').value = '';
getField('DYNAFORMS').value = '';
getField('INPUTS').value = '';

View File

@@ -48,17 +48,13 @@ var selfServiceTimeoutDataShow = function (sw)
hideRowById("TAS_SELFSERVICE_TIME");
hideRowById("TAS_SELFSERVICE_TIME_UNIT");
hideRowById("TAS_SELFSERVICE_TRIGGER_UID");
/*----------------------------------********---------------------------------*/
hideRowById("TAS_SELFSERVICE_EXECUTION");
/*----------------------------------********---------------------------------*/
if (sw == true) {
showRowById("TAS_SELFSERVICE_TIME");
showRowById("TAS_SELFSERVICE_TIME_UNIT");
showRowById("TAS_SELFSERVICE_TRIGGER_UID");
/*----------------------------------********---------------------------------*/
showRowById("TAS_SELFSERVICE_EXECUTION");
/*----------------------------------********---------------------------------*/
}
};
@@ -134,9 +130,7 @@ if (aTaskFlag[1])
}
getField("TAS_SELFSERVICE_TRIGGER_UID").value = oTaskData.TAS_SELFSERVICE_TRIGGER_UID;
/*----------------------------------********---------------------------------*/
getField("TAS_SELFSERVICE_EXECUTION").value = oTaskData.TAS_SELFSERVICE_EXECUTION;
/*----------------------------------********---------------------------------*/
showTextpm();
break;