List Info

Thread: Re: upgrade jquery in D5




Re: upgrade jquery in D5
user name
2007-12-21 09:01:57
As well as a swappable file upload management (file.inc)

On Dec 21, 2007 2:00 PM, Moshe Weitzman <weitzmantejasa.com> wrote:
> a swappable jquery just like our swappable cache
library and gd
> library sounds like a good idea.
>
>
> On 12/21/07, "Alex J. G. Burzyński"
<ajgbajgb.net> wrote:
> > That's the little trick I'm using (this way I can
override
> > misc/jquery.js with whatever version of jquery I
want):
> >
> > RCS file: /cvs/drupal/drupal/includes/common.inc,v
> > retrieving revision 1.611.2.12
> > diff -u -r1.611.2.12 common.inc
> > --- includes/common.inc 17 Oct 2007 21:28:59 -0000
     1.611.2.12
> > +++ includes/common.inc 21 Dec 2007 09:26:00 -0000
> >  -1608,7 +1608,9 
> >   */
> >  function drupal_add_js($data = NULL, $type =
'module', $scope =
> > 'header', $defer = FALSE, $cache = TRUE) {
> >    if (!is_null($data)) {
> > -    _drupal_add_js('misc/jquery.js', 'core',
'header', FALSE, $cache);
> > +    foreach (variable_get('core_jquery_scripts',
> > array('misc/jquery.js')) as $path) {
> > +      _drupal_add_js($path, 'core', 'header',
FALSE, $cache);
> > +    }
> >      _drupal_add_js('misc/drupal.js', 'core',
'header', FALSE, $cache);
> >    }
> >    return _drupal_add_js($data, $type, $scope,
$defer, $cache);
> >
> >
> > RCS file:
/cvs/drupal/drupal/sites/default/Attic/settings.php,v
> > retrieving revision 1.39.2.3
> > diff -u -r1.39.2.3 settings.php
> > --- sites/default/settings.php  9 Jul 2007
04:28:12 -0000       1.39.2.3
> > +++ sites/default/settings.php  21 Dec 2007
09:27:36 -0000
> >  -163,3 +163,9 
> >  #   'anonymous' => 'Visitor',
> >  # );
> >
> > +$conf = array(
> > +    'core_jquery_scripts' => array(
> > +       
'sites/all/custom/jquery-core/jquery-1.2.1.pack.js',
> > +       
'sites/all/custom/jquery-core/jquery.compat-1.0.js',
> > +    ),
> > +);
> >
> >
> > Cheers,
> > Alex
>



-- 
Damien Cirotteau
www.rue89.com
01 55 25 75 00
Re: upgrade jquery in D5
user name
2007-12-21 12:17:38
file.inc in D6 is better, and if we all try a bit we can get
a fine
hook system integrated there. see http://drupal.org/node
/142995. that
should eliminate the need to swap all of file.inc.

On 12/21/07, Damien Cirotteau <dcirotteaurue89.com> wrote:
> As well as a swappable file upload management
(file.inc)
>
> On Dec 21, 2007 2:00 PM, Moshe Weitzman
<weitzmantejasa.com> wrote:
> > a swappable jquery just like our swappable cache
library and gd
> > library sounds like a good idea.
> >
> >
> > On 12/21/07, "Alex J. G. Burzyński"
<ajgbajgb.net> wrote:
> > > That's the little trick I'm using (this way I
can override
> > > misc/jquery.js with whatever version of
jquery I want):
> > >
> > > RCS file:
/cvs/drupal/drupal/includes/common.inc,v
> > > retrieving revision 1.611.2.12
> > > diff -u -r1.611.2.12 common.inc
> > > --- includes/common.inc 17 Oct 2007 21:28:59
-0000      1.611.2.12
> > > +++ includes/common.inc 21 Dec 2007 09:26:00
-0000
> > >  -1608,7 +1608,9 
> > >   */
> > >  function drupal_add_js($data = NULL, $type =
'module', $scope =
> > > 'header', $defer = FALSE, $cache = TRUE) {
> > >    if (!is_null($data)) {
> > > -    _drupal_add_js('misc/jquery.js', 'core',
'header', FALSE, $cache);
> > > +    foreach
(variable_get('core_jquery_scripts',
> > > array('misc/jquery.js')) as $path) {
> > > +      _drupal_add_js($path, 'core',
'header', FALSE, $cache);
> > > +    }
> > >      _drupal_add_js('misc/drupal.js', 'core',
'header', FALSE, $cache);
> > >    }
> > >    return _drupal_add_js($data, $type,
$scope, $defer, $cache);
> > >
> > >
> > > RCS file:
/cvs/drupal/drupal/sites/default/Attic/settings.php,v
> > > retrieving revision 1.39.2.3
> > > diff -u -r1.39.2.3 settings.php
> > > --- sites/default/settings.php  9 Jul 2007
04:28:12 -0000       1.39.2.3
> > > +++ sites/default/settings.php  21 Dec 2007
09:27:36 -0000
> > >  -163,3 +163,9 
> > >  #   'anonymous' => 'Visitor',
> > >  # );
> > >
> > > +$conf = array(
> > > +    'core_jquery_scripts' => array(
> > > +       
'sites/all/custom/jquery-core/jquery-1.2.1.pack.js',
> > > +       
'sites/all/custom/jquery-core/jquery.compat-1.0.js',
> > > +    ),
> > > +);
> > >
> > >
> > > Cheers,
> > > Alex
> >
>
>
>
> --
> Damien Cirotteau
> www.rue89.com
> 01 55 25 75 00
>
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )