Hello,

I use jquery update 7.24 and i would like use also jquery ui to use accordion widget in bootstrap v2 theme.
But if I put this line in bootstrap.info
scripts[] = 'js/jquery-ui.js'

there are a lot of other JS file between the script of jquery update
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
and <script src="mydomain/sites/all/themes/DESKTOP/js/jquery-ui.js?n81h6l"></script>

So I modify the template.php file and I add this
drupal_add_js(path_to_theme().'/js/jquery-ui.js', array('type' => 'file', 'scope' => 'header', 'group' => JS_LIBRARY, 'weight' => -20 ));
and of course comment in bootstrap.info
scripts[] = 'js/jquery-ui.js'

But there are still 2 files between scripts[] = 'js/jquery-ui.js' and <script src="mydomain/sites/all/themes/DESKTOP/js/jquery-ui.js?n81h6l"></script>

2 files are
misc/jquery.once.js and misc/drupal.js

Finally I would like this
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script><script src="mydomain/sites/all/themes/DESKTOP/js/jquery-ui.js?n81h6l"></script>

Do you have a solution ?
Thank you very much

Comments

markhalliwell’s picture

Status: Active » Closed (outdated)