BUG 7943: Steps browsing issue

This issue was fixed, now displays the selected dynaform
This commit is contained in:
Carlos Pacha
2011-11-03 17:36:51 -04:00
parent 2b0b9de0f6
commit 0034a2cc05
4 changed files with 39 additions and 8 deletions

View File

@@ -9,7 +9,6 @@ var _ENV_CURRENT_DATE;
Ext.onReady(function(){
Ext.QuickTips.init();
showCaseNavigatorPanel = function(app_status) {
if (typeof(treeToReviseTitle) != 'undefined'){
@@ -155,20 +154,31 @@ Ext.onReady(function(){
root: {
nodeType: 'async'
},
listeners: {
render: function() {
this.getRootNode().expand();
},
click: function(tp) {
if( tp.attributes.url ){
document.getElementById('openCaseFrame').src = tp.attributes.url;
}
}
}
},
"afterrender": {
fn: setNodeini,
scope: this
}
})
var loader = casesStepTree.getLoader();
loader.on("load", setNodeini);
function setNodeini(){
var aNode = Ext.getCmp('casesStepTree').getNodeById(idfirstform);
aNode.select();
}
var navPanelWest = {
id: 'navPanelWest',
region: 'west',
@@ -880,6 +890,12 @@ Ext.onReady(function(){
CloseWindow = function(){
Ext.getCmp('w').hide();
};
setNode = function (uid){
var aNode = Ext.getCmp('casesStepTree').getNodeById(uid);
aNode.select();
}
/*-----added by krlos end------------*/
/*Date.prototype.dateFormat = function(format) {
var result = "";