Skip to content

Commit

Permalink
Load common.js after jquery conflicts have been resolved.
Browse files Browse the repository at this point in the history
Remove tal attribute inadvertently left in from template branch.
Rename minified jquery to indicate the version.  Add symbolic link and use
the symbolic link for ease of upgrades.
  • Loading branch information
Daryn Warriner committed Jun 9, 2010
1 parent f653c1f commit b4038b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/html_api.php
Expand Up @@ -403,21 +403,21 @@ function html_meta_redirect( $p_url, $p_time = null, $p_sanitize = true ) {
*/
function html_head_javascript() {
if( ON == config_get( 'use_javascript' ) ) {
html_javascript_link( 'common.js' );
echo '<script type="text/javascript">var loading_lang = "' . lang_get( 'loading' ) . '";</script>';
html_javascript_link( 'ajax.js' );
html_javascript_link( 'jquery-min.js' );
html_javascript_link( 'jquery.js' );

global $g_enable_projax;

if( $g_enable_projax ) {
html_javascript_link( 'projax/prototype.js' );
html_javascript_link( 'projax/scriptaculous.js' );
}
echo '<script type="text/javascript" tal:condition="use_javascript">';
echo '<script type="text/javascript">';
echo '/* Prevent jQuery from conflicting with projax...for now */';
echo 'var $j = jQuery.noConflict();';
echo '</script>';
html_javascript_link( 'common.js' );
}
}

Expand Down
1 change: 1 addition & 0 deletions javascript/dev/jquery.js
File renamed without changes.
1 change: 1 addition & 0 deletions javascript/min/jquery.js

0 comments on commit b4038b5

Please sign in to comment.