diff --git a/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl b/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl deleted file mode 100644 index 71f72d64d..000000000 --- a/admin/themes/default/template/controllers/orders/_stay_periods_tooltip.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{* -* NOTICE OF LICENSE -* -* This source file is subject to the Open Software License version 3.0 -* that is bundled with this package in the file LICENSE.md -* It is also available through the world-wide-web at this URL: -* https://opensource.org/license/osl-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 support@qloapps.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade this module to a newer -* versions in the future. If you wish to customize this module for your needs -* please refer to https://store.webkul.com/customisation-guidelines for more information. -* -* @author Webkul IN -* @copyright Since 2010 Webkul -* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0 -*} - -
diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 3f26e8782..64c32281f 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -397,8 +397,11 @@ class AdminOrdersControllerCore extends AdminController $uniqueStayPeriods = count($stayPeriods); if ($uniqueStayPeriods > 1) { - $stayPeriodHtml .= ' +' + $stayPeriodHtml .= ' +' .($uniqueStayPeriods - 1).''; } return $stayPeriodHtml; @@ -1513,8 +1516,6 @@ class AdminOrdersControllerCore extends AdminController $this->_new_list_header_design = true; - $this->content .= $this->context->smarty->fetch('controllers/orders/_stay_periods_tooltip.tpl'); - return parent::renderList(); } diff --git a/js/admin/orders_stay_periods.js b/js/admin/orders_stay_periods.js index 4a557dea8..f028b5096 100644 --- a/js/admin/orders_stay_periods.js +++ b/js/admin/orders_stay_periods.js @@ -21,76 +21,53 @@ */ $(document).ready(function () { - var closeTimer = null; - - function stayPeriodTooltip(periods) { - var $stayPeriodCont = $('#qlo-stay-period-tooltip .qlo-stay-period-cont').clone(); - var $stayPeriodBody = $stayPeriodCont.find('.qlo-stay-period-body').empty(); - - $stayPeriodBody.append( - $('