Files
interblue.pl/modules/ps_mbo/views/templates/admin/admin-end-content.tpl
2024-10-25 14:16:28 +02:00

72 lines
2.3 KiB
Smarty

{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="admin-end-content-footer" class="container">
</div>
<script type="text/javascript">
$(document).ready(function(){
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
url: '{$admin_module_ajax_url_psmbo}',
async: true,
cache: false,
dataType : "html",
data: {
ajax: '1',
action:'fetchModules',
controller_page: '{$controller_page}',
legacy: '0'
},
beforeSend: function() {
$('#admin-end-content-footer').html('<i class="icon-refresh icon-spin"></i>');
},
success: function(data) {
$('#admin-end-content-footer').html(data);
}
});
$('.controller-quick-view').each(function() {
$(this).fancybox({
type: 'ajax',
autoDimensions: false,
autoSize: false,
width: 600,
height: 'auto',
helpers: {
overlay: {
locked: false
}
},
href: $(this).attr('href') + '&action=GetModuleQuickView&module_name=' + $(this).attr('data-name') + '&ajax=1'
});
});
});
</script>