From 816a39fb4f4e045500f465110d78b092d09e3c25 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Wed, 7 Aug 2013 10:43:53 +0200 Subject: [PATCH] [+] BO : Footer list bulk actions --- .../template/helpers/list/list_footer.tpl | 19 ++++++++++++++++--- .../template/helpers/list/list_header.tpl | 3 --- js/admin.js | 9 ++++++++- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/helpers/list/list_footer.tpl index b4fc2a1e5..534d27d6f 100644 --- a/admin-dev/themes/default/template/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_footer.tpl @@ -30,12 +30,25 @@ {l s='Bulk actions'} diff --git a/admin-dev/themes/default/template/helpers/list/list_header.tpl b/admin-dev/themes/default/template/helpers/list/list_header.tpl index 0a9fac3ef..75a867fa2 100644 --- a/admin-dev/themes/default/template/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_header.tpl @@ -98,9 +98,6 @@ - {if $has_bulk_actions} - - {/if} {foreach $fields_display AS $key => $params} diff --git a/js/admin.js b/js/admin.js index ffc36eaef..d378023d6 100644 --- a/js/admin.js +++ b/js/admin.js @@ -1037,8 +1037,15 @@ function quickSelect(elt) //bootstrap BO New fonctions -function hideOtherLanguage(id){ +function hideOtherLanguage(id) +{ $('.translatable-field').hide(); $('.lang-' + id).show(); } +function sendBulkAction(form, action) +{ + $(action).val(1); + $(form).submit(); +} +