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

Version:5.x-1.x-dev» 6.x-1.0-beta1
Status:active» fixed

It seems to be solved on 6.x, please reopen it if needed

#3

Status:fixed» closed (fixed)

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

nobody click here