From c2ed51de7659c735f65b5b7659468aca482c3178 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 25 Jul 2012 18:09:43 +0000 Subject: [PATCH] Handle global IDs so open / double click works in et2 nextmatch --- calendar/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 8d74a40111..d66702346d 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -51,7 +51,7 @@ function cal_fix_app_id(_action, _senders) function cal_open(_action, _senders) { var id = _senders[0].id; - var matches = id.match(/^([0-9]+):([0-9]+)$/); + var matches = id.match(/^(?:calendar::)?([0-9]+):([0-9]+)$/); var backup = _action.data; if (matches) { @@ -79,7 +79,7 @@ function cal_open(_action, _senders) } } console.log(_action); - nm_action(_action, _senders); + nm_action(_action, _senders, null, {ids: []}); _action.data = backup; // restore url, width, height, nm_action -} \ No newline at end of file +}