Author Topic: Select workspace or project automatically when open its task  (Read 1807 times)

supadoctor

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
    • Email
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:

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!  ;)
« Last Edit: April 20, 2012, 04:18:57 am by supadoctor »