How to use the config.ContextPath function in config

To help you get started, we’ve selected a few config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / restart.js View on Github external
$.messager.confirm("操作提示", "您确定要重启流程吗?", function (bo) {

                if(bo){
                    Core.ajax(Config.ContextPath+'workflow/flow/manager/resetToCurrent/'+data.flowInstId, {
                        method: 'get'
                    }).then(function(data) {
                        // var index=table.datagrid('getSelectedRowIndex');
                        // table.datagrid('updateRow',{'index':index,row:data});
                    });
                }

            });
        };
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / flowvariable / delvariable.js View on Github external
this.onClose = function(table) {
            var flowInstId=this.parent.data.flowInstId;
            Core.ajax(Config.ContextPath+'workflow/flow/manager/getvariablelist/'+flowInstId, {
                method: 'get'
            }).then(function(data) {
                table.cdatagrid({
                    controller: _self
                })
                    .datagrid('loadData', data);
            });
        };
        // this.renderButton = function (btn, data) {
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / flowvariable / addvariable.js View on Github external
this.onClose = function(table) {
            var flowInstId=this.parent.data.flowInstId;
            Core.ajax(Config.ContextPath+'workflow/flow/manager/getvariablelist/'+flowInstId, {
                method: 'get'
            }).then(function(data) {
                table.cdatagrid({
                    controller: _self
                })
                    .datagrid('loadData', data);
            });
        };
        // this.renderButton = function (btn, data) {
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / flowteam / flowmanager.team.js View on Github external
this.load = function(panel, data) {
            var form = panel.find('form');
            var table = this.table = panel.find('table');
            form.form('load', data);
            Core.ajax(Config.ContextPath+'workflow/flow/manager/getteamlist/'+data.flowInstId, {
                method: 'get'
            }).then(function(data) {
                table.cdatagrid({
                    controller: _self
                })
                    .datagrid('loadData', data);
            });
        };
    });
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowdefine / ctrl / flowdefine.delete.js View on Github external
this.submit = function(table, data,closeCallback) {
			var _self=this;
			Core.ajax(Config.ContextPath+'workflow/flow/define/deleteFlow/'+data.flowCode, {
				method: 'GET'
			}).then(function(data) {
				var table=_self.parent.table;
				table.datagrid('reload');
			});
			return false;

		};
	});
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / organize / flowmanager.orgs.js View on Github external
this.load = function(panel, data) {
			var form = panel.find('form');
			var table = this.table = panel.find('table');
			form.form('load', data);
			Core.ajax(Config.ContextPath+'workflow/flow/manager/getorglist/'+data.flowInstId, {
				method: 'get'
			}).then(function(data) {
				table.cdatagrid({
					controller: _self
				})
				.datagrid('loadData', data);
				
			});
		};
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowdefine / ctrl / flowVariable / flowdefine.variable.js View on Github external
this.submit = function(panel, data, closeCallback) {
            var form = panel.find('form');
            var table = this.table;

            if (form.form('validate') && table.cdatagrid('endEdit')) {
                var items = table.datagrid('getData').rows;

                data.flowVariableDefines = items;
                data.flowVariableDefs = null;
                data._method = 'PUT';

                Core.ajax(Config.ContextPath+'workflow/flow/define/variableDefine/'+data.flowCode, {
                    data: data,
                    method: 'post'
                }).then(closeCallback);

                return false;
            }
        };
    });
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / flowmanager / ctrl / organize / delroleunits.js View on Github external
}).then(function() {
                Core.ajax(Config.ContextPath+'workflow/flow/manager/getorglist/'+flowInstId, {
                    method: 'get'
                }).then(function(data) {
                    table.datagrid('loadData', data);
                });
            })
        };
github ndxt / centit-workflow / centit-workflow-view / src / main / webapp / modules / sys / useroptmgr / ctrl / alignrelegate.js View on Github external
this.submit = function(panel, data, closeCallback) {
			var form = panel.find('form');
			
			form.form('enableValidation');
			
			var value=form.form('value');
			userCode=value.userCode;
			var isValid = form.form('validate');
			
			if (isValid) {
				form.form('ajax', {
					url: Config.ContextPath+'workflow/flow/useroptmgr/alignrelegate/'+data.relegateno+'/'+userCode,
					method: 'put',
				}).then(closeCallback);
			}
			
			return false;
		};