summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-12-17 11:38:49 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:59 +0100
commit9a933515d0a263a077b96cf2a0517f6e6b2be314 (patch)
treef1b5b051487152744002d1ca512507f56e54481f /ishtar_common/templates/blocks
parent97e8942616164eb4df936f97307cbb5c2121d702 (diff)
downloadIshtar-9a933515d0a263a077b96cf2a0517f6e6b2be314.tar.bz2
Ishtar-9a933515d0a263a077b96cf2a0517f6e6b2be314.zip
Find - Quick action n1 treatment: add redirect in table quick action - fix resulting_pk initialization (refs #5231)
Diffstat (limited to 'ishtar_common/templates/blocks')
-rw-r--r--ishtar_common/templates/blocks/DataTables.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html
index 2719a9b46..a4b34cd04 100644
--- a/ishtar_common/templates/blocks/DataTables.html
+++ b/ishtar_common/templates/blocks/DataTables.html
@@ -223,7 +223,7 @@ jQuery(document).ready(function(){
"style": {% if multiple_select or quick_actions %}'multi'{% else %}'single'{% endif %}
},
{% if multiple_select or quick_actions %}"buttons": [
- {% for url, title, icon, target in quick_actions %}
+ {% for url, title, icon, target, is_popup in quick_actions %}
{
{% if target == 'one' %}extend: 'selectedSingle',
{% elif target == 'many' %}extend: 'selected',
@@ -233,7 +233,11 @@ jQuery(document).ready(function(){
titleAttr: "{{title}}",
action: function (e, dt, node, config) {
var url = dt_generate_qa_url(dt, "{{url}}");
+ {% if is_popup %}
dt_qa_open(url);
+ {% else %}
+ window.location.href = url;
+ {% endif %}
return false;
}
},