com web/shared: Many scripts require jQuery to work, so it should be loaded first: templates/footer.inc

From: Date: Tue, 01 Apr 2014 19:05:21 +0000
Subject: com web/shared: Many scripts require jQuery to work, so it should be loaded first: templates/footer.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18662@lists.php.net to get a copy of this message
Commit: 1d58d9a3cd6a1dfb4441e8fb9c23e6e17138bd6d Author: Sobak <msobaczewski@gmail.com> Tue, 1 Apr 2014 21:05:21 +0200 Parents: fb2b4a35a22e32b2c370254b66507acf902f649d Branches: master Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=1d58d9a3cd6a1dfb4441e8fb9c23e6e17138bd6d Log: Many scripts require jQuery to work, so it should be loaded first Changed paths: M templates/footer.inc Diff: diff --git a/templates/footer.inc b/templates/footer.inc index 45d3d7b..2dfd5f7 100644 --- a/templates/footer.inc +++ b/templates/footer.inc @@ -31,11 +31,11 @@ $ROOT = substr($_SERVER["SERVER_NAME"], -8) == ".php.net" ? "//shared.php.net" : <?php $current_time = time(); -$scripts = array_merge($JS, array( +$scripts = array_merge(array( '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery..min.js', '/js/external/mousetrap.min.js', '/js/common.js' -)); +), $JS); foreach ($scripts as $script): if (strncmp($script, "//", 2) == 0) { echo "<script src='$script'></script>\n";

« previous php.webmaster (#18662) next »