// remove javascript include from tpl
This commit is contained in:
1 parent
1dc07ab2ba
commit
874e17aa6f
2 files changed
+3
-10
No files matched your search
@@ -27,15 +27,6 @@
|
|||||||
var token = '{$token}';
|
var token = '{$token}';
|
||||||
var come_from = 'AdminModulesPositions';
|
var come_from = 'AdminModulesPositions';
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../js/vendor/jquery.sortable.js"></script>
|
|
||||||
<style type="text/css">
|
|
||||||
li.sortable-placeholder {
|
|
||||||
border: 1px dashed #CCC;
|
|
||||||
background: #8EB1D7;
|
|
||||||
list-style: none;
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
|
{include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
|
||||||
<div>{block name="leadin"}{/block}</div>
|
<div>{block name="leadin"}{/block}</div>
|
||||||
@@ -90,7 +81,7 @@
|
|||||||
|
|
||||||
{if $hook['module_count']}
|
{if $hook['module_count']}
|
||||||
<section class="module_list">
|
<section class="module_list">
|
||||||
<ul{if $hook['modules']|count > 1} class="sortable"{/if}>
|
<ul class="list-unstyled{if $hook['modules']|count > 1} sortable{/if}">
|
||||||
|
|
||||||
{foreach $hook['modules'] as $position => $module}
|
{foreach $hook['modules'] as $position => $module}
|
||||||
{if isset($module['instance'])}
|
{if isset($module['instance'])}
|
||||||
|
|||||||
@@ -226,6 +226,8 @@ class AdminModulesPositionsControllerCore extends AdminController
|
|||||||
|
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
|
$this->addJS(__PS_BASE_URI__.'js/vendor/jquery.sortable.js');
|
||||||
|
|
||||||
if (array_key_exists('addToHook', $_GET) || array_key_exists('editGraft', $_GET) || (Tools::isSubmit('submitAddToHook') && $this->errors))
|
if (array_key_exists('addToHook', $_GET) || array_key_exists('editGraft', $_GET) || (Tools::isSubmit('submitAddToHook') && $this->errors))
|
||||||
{
|
{
|
||||||
$this->display = 'edit';
|
$this->display = 'edit';
|
||||||
|
|||||||
Reference in new issue
Block a user