1
How To's / Select workspace or project automatically when open its task
« on: April 19, 2012, 03:07:28 am »
I use FO v 1.7.5 hardly and for many projects and task - it's good piece of software. But when I opening the link to task (from email notification of from overview tab) my active workspace didn't changed. It was inconvenient for me.
There is some code hack to change it:
in \application\views\task\view_list.php at line 60 (after php part) put following script:
in \public\assets\javascript\og\WorkspacePanel.js chanege select function (string 482) as following:
I think that's much better!
There is some code hack to change it:
in \application\views\task\view_list.php at line 60 (after php part) put following script:
Code: [Select]
<script>
Ext.getCmp('workspace-panel').select(<?php echo $task_list->getProject()->getId();?>);
</script>
in \public\assets\javascript\og\WorkspacePanel.js chanege select function (string 482) as following:
Code: [Select]
select: function(id) {
if (!id) {
this.workspaces.ensureVisible();
this.workspaces.select();
} else {
var node = this.getNode(id);
if (node) {
node.ensureVisible();
this.pauseEvents = true;
node.select();
this.pauseEvents = false;
}
}
},
I think that's much better!