--- todolist.js.orig	2007-06-23 19:56:40.066011200 +0200
+++ todolist.js	2007-06-23 19:57:54.613204800 +0200
@@ -23,7 +23,7 @@
   $('#todolist-add-task-form').submit(function() {
     $.ajax({
       type: 'POST',
-      url: '/todolist/create_task',
+      url: 'index.php?q=todolist/create_task',
       data: $('input, select', this).serialize() + '&order='+($('.todolist.incomplete .task').length+1),
       dataType: 'json',
     });
@@ -64,7 +64,7 @@
     serial = $.SortSerialize(obj[0].id);
     $.ajax({
       type: 'POST',
-      url: '/todolist/reorder_task',
+      url: 'index.php?q=todolist/reorder_task',
       data: serial.hash,
     });
   },
@@ -77,7 +77,7 @@
       var element = $(this).parent();
       $.ajax({
         type: 'POST',
-        url: '/todolist/toggle_task',
+        url: 'index.php?q=todolist/toggle_task',
         data: 'id='+this.name+'&checked='+(this.checked? '1' : '0')+'&order='+(this.checked? -1 : $('.todolist.incomplete .task').length+1),
         dataType: 'json',
         beforeSend: function() { $(element).addClass('loading'); },
@@ -90,7 +90,7 @@
     var element = $('#'+id);
     $.ajax({
       type: 'POST',
-      url: '/todolist/delete_task',
+      url: 'index.php?q=todolist/delete_task',
       data: 'id='+id,
       dataType: 'json',
       beforeSend: function() { $(element).addClass('loading'); },
@@ -104,7 +104,7 @@
       var element = $(this).parent();
       $.ajax({
         type: 'POST',
-        url: '/todolist/edit_task',
+        url: 'index.php?q=todolist/edit_task',
         data: $('input, textarea, select', this).serialize(),
         dataType: 'json',
         beforeSend: function() { $(element).addClass('loading'); },
@@ -114,7 +114,7 @@
       var element = $('#'+id);
       $.ajax({
         type: 'GET',
-        url: '/todolist/edit_task?id='+id,
+        url: 'index.php?q=todolist/edit_task?id='+id,
         dataType: 'json',
         beforeSend: function() { $(element).addClass('loading'); },
         complete: function() { $(element).removeClass('loading'); },
