$(i).attr("src") is undefined

appel - December 5, 2008 - 23:08
Project:Todolist
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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;
}

#1

appel - December 5, 2008 - 23:10

It also happens when clicking the 'edit' button for any task.

#2

marvil07 - October 8, 2009 - 20:42
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

System Message - October 22, 2009 - 20:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.