From 6f16ec8df98355e9d18a73f055f719f5bef7ff4b Mon Sep 17 00:00:00 2001 From: mokaddem Date: Mon, 14 Jan 2019 16:50:59 +0100 Subject: [PATCH] chg: [UI] WIP - generic_picker popover is attached to body Needed to add reference to the original node that toggle the popover --- app/View/Elements/eventattribute.ctp | 2 +- app/View/Elements/generic_picker.ctp | 4 ++-- app/webroot/js/misp.js | 29 ++++++++++++++++++++-------- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/app/View/Elements/eventattribute.ctp b/app/View/Elements/eventattribute.ctp index 879bd1fd0..b4084fb30 100644 --- a/app/View/Elements/eventattribute.ctp +++ b/app/View/Elements/eventattribute.ctp @@ -116,7 +116,7 @@
- + diff --git a/app/View/Elements/generic_picker.ctp b/app/View/Elements/generic_picker.ctp index 49e6433a1..f96458071 100644 --- a/app/View/Elements/generic_picker.ctp +++ b/app/View/Elements/generic_picker.ctp @@ -90,7 +90,6 @@ $param_html = ' '; if (is_array($param)) { // add data as param if (isset($param['functionName'])) { - // $param_html .= 'onclick="' . $param['functionName'] . '" '; $param_html .= 'onclick="execAndClose(this, ' . $param['functionName'] . ')" '; } else { // fallback to default submit function if ($defaults['functionName'] !== '') { @@ -140,7 +139,8 @@