Author Topic: (resolved - sorta) Preset task filter queary  (Read 12403 times)

fernandog

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: (resolved - sorta) Preset task filter queary
« Reply #15 on: July 15, 2010, 09:35:05 am »
Hi Murz,

The line "this.load();" after each button should refresh the task list. I didnt change anything else on the code...

For what its worth, I placed it between

Code: [Select]
    this.add(this.statusCombo);and

Code: [Select]
};

function ogTasksLoadFilterValuesCombo(newValue){

Unfortunately I dont know how to make a patch file  :-\

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Preset task filter queary
« Reply #16 on: July 16, 2010, 07:51:09 am »
I have fount the source of problem:
(enter anywhere after "//Add stuff to the toolbar" on TasksTopToolbar.js)
This code must be placed to TasksBottomToolbar.js, not in TasksTopToolbar.js, because last one don't have the this.statusCombo object.

I move code to TasksBottomToolbar.js and it goes to work.
But work only one time: first click on any button works (it filter tasks normally), but second and other clicks shows JS error and don't filter (but successfully change the values in select boxes), the error is:
Error: this.load is not a function
Source File: /public/assets/javascript/og/og.js
Line: 1639

Browser is Firefox 3.6, FengOffice 1.7.

fernandog

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: (resolved - sorta) Preset task filter queary
« Reply #17 on: July 16, 2010, 10:01:40 am »
wierd, my status combo is in the top toolbar. i guess i shoud say im using version 1.5.2. I know its an old one, just waiting on some projects to finish before i upgrade.