BUG 0000 Fixing a litle bug when opening a case
- problem found when a case was open and a node need to set into cases steps tree - validation missing added
This commit is contained in:
@@ -766,7 +766,8 @@ Ext.onReady(function(){
|
||||
|
||||
if( tab ) {
|
||||
TabPanel.setActiveTab(tabId);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
TabPanel.add({
|
||||
id: tabId,
|
||||
title: menuSelectedTitle[name],
|
||||
@@ -783,10 +784,8 @@ Ext.onReady(function(){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
/*-----added by krlos------------*/
|
||||
Actions.adhocAssignmentUsers = function()
|
||||
{
|
||||
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
|
||||
@@ -845,7 +844,14 @@ Ext.onReady(function(){
|
||||
},
|
||||
cm: cmk,
|
||||
store: store,
|
||||
tbar:[{text:_('ID_ASSIGN'), iconCls: 'silk-add', icon: '/images/cases-selfservice.png', handler: assignAdHocUser} ],
|
||||
tbar:[
|
||||
{
|
||||
text:_('ID_ASSIGN'),
|
||||
iconCls: 'silk-add',
|
||||
icon: '/images/cases-selfservice.png',
|
||||
handler: assignAdHocUser
|
||||
}
|
||||
],
|
||||
bbar: '',
|
||||
listeners:{
|
||||
rowdblclick: assignAdHocUser
|
||||
@@ -863,7 +869,8 @@ Ext.onReady(function(){
|
||||
adHocUserGrid.store.load();
|
||||
w.show();
|
||||
|
||||
function assignAdHocUser(){
|
||||
function assignAdHocUser()
|
||||
{
|
||||
rowSelected = adHocUserGrid.getSelectionModel().getSelected();
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_ADHOCUSER_CASE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'Assignment case...'});
|
||||
@@ -878,7 +885,8 @@ Ext.onReady(function(){
|
||||
if( data.success ) {
|
||||
CloseWindow();
|
||||
location.href = 'casesListExtJs';
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
PMExt.error(_('ID_ERROR'), data.msg);
|
||||
}
|
||||
},
|
||||
@@ -889,36 +897,23 @@ Ext.onReady(function(){
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
CloseWindow = function(){
|
||||
Ext.getCmp('w').hide();
|
||||
};
|
||||
|
||||
setNode = function(uid){
|
||||
var aNode = Ext.getCmp('casesStepTree').getNodeById(uid);
|
||||
var stepsTree = Ext.getCmp('casesStepTree');
|
||||
|
||||
if (!stepsTree) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var node = stepsTree.getNodeById(uid);
|
||||
|
||||
if (!node) {
|
||||
return false;
|
||||
}
|
||||
|
||||
aNode.select();
|
||||
}
|
||||
|
||||
/*-----added by krlos end------------*/
|
||||
/*Date.prototype.dateFormat = function(format) {
|
||||
var result = "";
|
||||
for (var i = 0; i < format.length; ++i) {
|
||||
result += this.dateToString(format.charAt(i));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Date.prototype.dateToString = function(character) {
|
||||
switch (character) {
|
||||
case "Y":
|
||||
return this.getFullYear();
|
||||
|
||||
case "d":
|
||||
return this.getDate();
|
||||
|
||||
case "m":
|
||||
return this.getMonth();
|
||||
// snip a bunch of lines
|
||||
default:
|
||||
return character;
|
||||
}
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user