Skip to content

Commit

Permalink
Merge branch 'master' of git.nexgenta.com:2009/eregansu
Browse files Browse the repository at this point in the history
  • Loading branch information
nevali committed Apr 8, 2012
2 parents 06411a9 + a5f7b16 commit 6056f40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion platform/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,21 @@ public function process()

/* Libraries */

public function useJQuery($version = '1.4.1')
public function useJQuery($version = '1.7.2')
{
$root = $this->request->root;
if(defined('SCRIPTS_IRI')) $root = SCRIPTS_IRI;
if(defined('SCRIPTS_USE_GAPI')) $root = 'http://ajax.googleapis.com/ajax/libs/';
$this->vars['scripts']['jquery'] = $root . 'jquery/' . $version . '/jquery.min.js';
}

public function useRequireJS($version = '1.0.7')
{
$root = $this->request->root;
if(defined('SCRIPTS_IRI')) $root = SCRIPTS_IRI;
if(defined('SCRIPTS_USE_CDNJS')) $root = 'http://cdnjs.cloudflare.com/ajax/libs/';
$this->vars['scripts']['require.js'] = $root . 'require.js/' . $version . '/require.min.js';
}

public function useGlitter($module)
{
Expand Down

0 comments on commit 6056f40

Please sign in to comment.