diff options
| author | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-04-09 15:01:32 +0530 |
|---|---|---|
| committer | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-04-09 15:01:32 +0530 |
| commit | 89194da727ebb8cc3d9a0f7d7aeca7741338fd9a (patch) | |
| tree | 3db464d04af0d1ed46a600a30efccba34fc2b6c5 /addons/project/static/src/js/project.js | |
| parent | 9e4e2e678e8c072705fbfc0b7711d64024fec9b9 (diff) | |
[IMP]
bzr revid: apa@tinyerp.com-20120409093132-lxrojybxcy3u4bb1
Diffstat (limited to 'addons/project/static/src/js/project.js')
| -rw-r--r-- | addons/project/static/src/js/project.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js index 5096817f8a6..abe2b1c8da1 100644 --- a/addons/project/static/src/js/project.js +++ b/addons/project/static/src/js/project.js @@ -24,6 +24,18 @@ openerp.project = function(openerp) { //if task is true , then open the task when click on the anywhere in the box. if(this.record.task.raw_value)$(this.$element).find('.click_button').attr('data-name','open_tasks'); if(!this.record.task.raw_value)$(this.$element).find('.click_button').attr('data-name','dummy'); + + // set sequence like Tasks,Issues,Timesheets and Phases + my_list = $("#list a") + my_list.sort(function (a, b) { + var aValue = parseInt(a.id); + var bValue = parseInt(b.id); + // ASC + //return aValue == bValue ? 0 : aValue < bValue ? -1 : 1; + // DESC + return aValue == bValue ? 0 : aValue < bValue ? -1 : 1; + }); + $('#list').replaceWith(my_list); }; self._super(); } |
