The protocol is hard coded and won't work for an https site.

var aurl = "http:/ds.l"+Drupal.settings.basePath + 'index.php?q=ajax/content_lock/'+nid+'/canceledit&t='+random;
var protocol = $(location).attr('protocol');
var aurl = protocol+"/ds.l"+Drupal.settings.basePath + 'index.php?q=ajax/content_lock/'+nid+'/canceledit&t='+random;

Comments

eugenmayer’s picture

Well, thats a pretty good patch and actually pretty bad by me (iam using https in 90% of all setups..).

Thank you very much!

eugenmayer’s picture

Well this need even more care, it seems like "ds.l" is a hardcoded host of mine, no idea how it got there.

   var protocol = $(location).attr('protocol');
    var host  = $(location).attr('host');
    var aurl = protocol+host+Drupal.settings.basePath + 'index.php?q=ajax/content_lock/'+nid+'/canceledit&t='+random;
eugenmayer’s picture

Status: Active » Fixed

will be included in 2.3

Status: Fixed » Closed (fixed)

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