Posted by appel on December 5, 2008 at 11:08pm
Jump to:
| Project: | Todolist |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When trying to add a new task the page reloads and Firebug reports the following error in todolist.js (line 213):
$(i).attr("src") is undefined
Here the complete function containing the error:
function getBaseUrl() {
var url = '';
var script = $.grep($('head > script'), function(i) {
return $(i).attr('src').indexOf('todolist.js') > -1
});
url = $(script).attr('src');
url = url.substring(0, url.indexOf('modules/'));
if (url.indexOf('sites/') > -1)
url = url.substring(0, url.indexOf('sites/'));
return url;
}
Comments
#1
It also happens when clicking the 'edit' button for any task.
#2
It seems to be solved on 6.x, please reopen it if needed
#3
Automatically closed -- issue fixed for 2 weeks with no activity.