Skip to content
Snippets Groups Projects
Commit d94ea6fb authored by Earl Miles's avatar Earl Miles
Browse files

Make sure base url is properly removed from task handler operations links...

Make sure base url is properly removed from task handler operations links which are not really links.
parent efd617ba
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ Drupal.behaviors.zzGoLastDelegatorTaskList = function(context) {
$dropdown = $(this).parent().siblings('.ctools-dropdown');
$('.ctools-dropdown-container a', $dropdown).click(function() {
var val = $(this).attr('href').replace('/', '');
var val = $(this).attr('href')..replace(/^.*[\/\\]/g, '');
// ignore empty
if (!val) {
......
......@@ -58,6 +58,7 @@ function delegator_node_view($node) {
$task = delegator_get_task('node_view');
// Load the node into a context.
ctools_include('context');
ctools_include('context-task-handler');
$contexts = ctools_context_handler_get_task_contexts($task, '', array($node));
......
......@@ -57,6 +57,7 @@ function delegator_user_view($account) {
$task = delegator_get_task('user_view');
// Load the account into a context.
ctools_include('context');
ctools_include('context-task-handler');
$contexts = ctools_context_handler_get_task_contexts($task, '', array($account));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment