Hi,

Is there a way to set the "show completed tasks" to default instead of having to enable it everytime you refresh the page?
This is because we use the module with a group and it's a mess when they add things that have already been added before.

I tried to modify the .js file but didn't get it to work :/
It's most likely just 1 number that has to be changed, but I can't find it.

If somebody could help me out with it, that would be awesome!

Thanks!

Comments

kimble’s picture

I never could set "show completed tasks" to be checked by default. It seems that action requires a click event to work and undoing that would require altering several parts of the code. However, I did get the result I wanted by adding curList.showCompl = 1; to the code snippet below which begins around line 770 of mytinytodo.js in the lib directory of the module. This hack did disable toggling though.

function loadTasks(opts)
{
	if(!curList) return false;
	setSort(curList.sort, 1);
	curList.showCompl = 1;  //added by kimble
	opts = opts || {};
	if(opts.clearTasklist) {
		$('#tasklist').html('');
		$('#total').html('0');
	}
fizk’s picture

Category: Task » Feature request
Priority: Critical » Normal
mastoll’s picture

Where is this "show completed tasks" function?
Edit: found in the tab's drop-down menu.

  • fizk committed 9128c97 on 7.x-1.x
    Issue #2334495: Always show completed tasks.
    
fizk’s picture

Status: Active » Fixed

I've added a new setting, "Always show completed tasks", which will appear under "Show completed tasks".

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.