Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:08:56 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: jquery ui mandatory  (Read 339 times)
noname8

Offline Offline

Posts: 75


« on: November 08, 2011, 09:19:58 AM »

I see that the jquery is quite old and giving alot of errors. Now i'd like to know that if i have site frontend template that the jquery is needed but no ui, how can i disable the jquery-ui ?

And is the admin-section using the jquery & jquery-ui to something? can i update it ?

wb version that i have is 2.8.1 and older. Dont want to update to that 2.8.2 because it's bloated and giving too much pain
Logged
Argos
WebsiteBaker Org e.V.

Offline Offline

Posts: 2161


WWW
« Reply #1 on: November 08, 2011, 01:04:05 PM »

In your template(s) just replace
Code:
<?php 
// automatically include optional WB module files (frontend.css, frontend.js)
if (function_exists('register_frontend_modfiles')) {
register_frontend_modfiles('css');
register_frontend_modfiles('jquery');
register_frontend_modfiles('js');

?>
with
Code:
<?php 
// automatically include optional WB module files (frontend.css, frontend.js)
if (function_exists('register_frontend_modfiles')) {
register_frontend_modfiles('css');
register_frontend_modfiles('js');

?>

Now WB doesn't load the internal jQuery stuff anymore, so you can add your own lines and preferred files.

As far as I know jQuery is not used in a the backend. If it's loaded anyway (I didn't check), just disable it and see what happens.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
BlackBird
AddOn Development
*
Offline Offline

Posts: 2069



WWW
« Reply #2 on: November 08, 2011, 05:57:32 PM »

The jQuery Core is included in the Backend by default in 2.8.1, so you would have to change the BE Theme to remove it. Look into footer.htt. As far as I know, it is not used in the BE.

You may use lib_jquery and LibraryAdmin to load jQuery on demand.
Logged

Alle großen Veränderungen beginnen im Kleinen
noname8

Offline Offline

Posts: 75


« Reply #3 on: November 09, 2011, 10:04:34 PM »

I updated the jquery to most new and removed the jquery-ui but left the jquery-insert so that the colorbox will work. Seems to work fine..

Edited the frontend.functions. php in framework -folder.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!