From a7bee33635ddae13b71c54ac60e7bb0f430addea Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 16 Jan 2012 13:31:00 +0000 Subject: [PATCH] // Fixed SupplyOrders git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12429 b9a71923-0436-4b27-9f14-aed3839534dd --- .../list_action_details.tpl | 125 ------------------ .../list_action_details.tpl | 7 +- .../list_header.tpl} | 7 +- classes/helper/Helper.php | 12 +- 4 files changed, 16 insertions(+), 135 deletions(-) delete mode 100644 admin-dev/themes/default/template/controllers/supplier_orders_receipt_history/list_action_details.tpl rename admin-dev/themes/default/template/controllers/{supply_orders/update_receipt.tpl => supply_orders_receipt_history/list_header.tpl} (91%) diff --git a/admin-dev/themes/default/template/controllers/supplier_orders_receipt_history/list_action_details.tpl b/admin-dev/themes/default/template/controllers/supplier_orders_receipt_history/list_action_details.tpl deleted file mode 100644 index 335ebd0f8..000000000 --- a/admin-dev/themes/default/template/controllers/supplier_orders_receipt_history/list_action_details.tpl +++ /dev/null @@ -1,125 +0,0 @@ -{* -* 2007-2011 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - - {$action} - \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_action_details.tpl b/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_action_details.tpl index ca005b350..cebce9597 100644 --- a/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_action_details.tpl +++ b/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_action_details.tpl @@ -36,6 +36,12 @@ $(document).ready(function() { action: '{$action}', ajax: true }, + beforeSend : function(data) + { + // don't display the loading notification bar + if (typeof(ajax_running_timeout) !== 'undefined') + clearTimeout(ajax_running_timeout); + }, context: document.body, dataType: 'json', context: this, @@ -99,7 +105,6 @@ $(document).ready(function() { } this.dataMaped = true; this.opened = false; - initTableDnD('.details_{$id} table.tableDnD'); } }); } diff --git a/admin-dev/themes/default/template/controllers/supply_orders/update_receipt.tpl b/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_header.tpl similarity index 91% rename from admin-dev/themes/default/template/controllers/supply_orders/update_receipt.tpl rename to admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_header.tpl index 190b11590..2086ab1f2 100644 --- a/admin-dev/themes/default/template/controllers/supply_orders/update_receipt.tpl +++ b/admin-dev/themes/default/template/controllers/supply_orders_receipt_history/list_header.tpl @@ -23,13 +23,14 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} +{extends file="helper/list/list_header.tpl"} +{block name=override_header} - -{$content} \ No newline at end of file +{/block} \ No newline at end of file diff --git a/classes/helper/Helper.php b/classes/helper/Helper.php index fc3084410..df6bf6281 100755 --- a/classes/helper/Helper.php +++ b/classes/helper/Helper.php @@ -125,9 +125,9 @@ class HelperCore { if (!$use_radio) $input_name = $input_name.'[]'; - + $context = Context::getContext(); - + $context->controller->addCSS(_PS_JS_DIR_.'jquery/plugins/treeview/jquery.treeview.css'); $context->controller->addJs(array( @@ -137,8 +137,8 @@ class HelperCore _PS_JS_DIR_.'admin-categories-tree.js')); if ($use_search) $context->controller->addJs(_PS_JS_DIR_.'jquery/plugins/autocomplete/jquery.autocomplete.js'); - - + + $html = '