summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/DataTables.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables.html')
-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;
}
},