use $this->requireAsset on singlepage under dashboard
Permalink
hi
i've problem using $this->requireAsset('select2'); for use a select with select2 function on a dashboard single page.
if i use <script type="text/javascript" src="<?php echo DIR_REL ?>/concrete/js/select2.js"></script> in the view.php load the select2.js but when the page return from the method called the select2.js disappear.
i think the $this->requireAsset('select2'); doesn't work
any ideas?
i've problem using $this->requireAsset('select2'); for use a select with select2 function on a dashboard single page.
if i use <script type="text/javascript" src="<?php echo DIR_REL ?>/concrete/js/select2.js"></script> in the view.php load the select2.js but when the page return from the method called the select2.js disappear.
i think the $this->requireAsset('select2'); doesn't work
any ideas?
If you have your $this->requireAsset('select2'); in the view() function in your single page's controller and you then submit to a different method, unless that other method calls $this->view() the view method is not called again. So you need to add your $this->requireAsset('select2'); to that other method as well.