From 2b2a4b10a18aeb6e6d1ac9dc4a32e491df488a5d Mon Sep 17 00:00:00 2001
From: Earl Miles <merlin@logrus.com>
Date: Tue, 5 May 2009 23:19:25 +0000
Subject: [PATCH] #433390 by alienbrain: Delegator dropdown fails with clean
 URLs.

---
 delegator/js/task-handlers.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/delegator/js/task-handlers.js b/delegator/js/task-handlers.js
index 3420807a..809f7eff 100644
--- a/delegator/js/task-handlers.js
+++ b/delegator/js/task-handlers.js
@@ -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(/^.*[\/\\]/g, '');
+      var val = $(this).attr('href').replace(/^.*[\/\\](\?q=)?/g, '');
 
       // ignore empty
       if (!val) {
-- 
GitLab