// AdminSupplyOrdersController: added confirm message before using a template to create an order

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10746 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-29 14:47:06 +00:00
parent e918d53dfa
commit 2ff4ce919f
2 changed files with 5 additions and 1 deletions

View File

@@ -23,5 +23,5 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a href="{$href}">
<a href="{$href}" onclick="return confirm('{$confirm}');">
<img src="../img/admin/copy_files.gif" alt="{$action}" title="{$action}" /></a>

View File

@@ -1162,10 +1162,14 @@ class AdminSupplyOrdersControllerCore extends AdminController
if (!array_key_exists('CreateSupplyOrder', self::$cache_lang))
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order');
if (!array_key_exists('CreateSupplyOrderConfirm', self::$cache_lang))
self::$cache_lang['CreateSupplyOrderConfirm'] = $this->l('Are you sure you want to use this template?');
$this->context->smarty->assign(array(
'href' => self::$currentIndex.
'&'.$this->identifier.'='.$id.
'&create_supply_order&token='.($token != null ? $token : $this->token),
'confirm' => self::$cache_lang['CreateSupplyOrderConfirm'],
'action' => self::$cache_lang['CreateSupplyOrder'],
));