X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=inline;f=wicket%2Fcomponents%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fwicket%2Fjquery%2FJQueryHeaderContributor.java;h=216b08248976debef4692d58dba5090b1f1b50a2;hb=e4ecae4c77d5c4cd8ec328431cf3959226360f67;hp=fb4cdf489d0d5c6c9d54bb242cb253bcf38d1d20;hpb=3f876b2183d6ac1b3dc5fbcf3cc650ac7e7b62c0;p=utils diff --git a/wicket/components/src/main/java/org/wamblee/wicket/jquery/JQueryHeaderContributor.java b/wicket/components/src/main/java/org/wamblee/wicket/jquery/JQueryHeaderContributor.java index fb4cdf48..216b0824 100644 --- a/wicket/components/src/main/java/org/wamblee/wicket/jquery/JQueryHeaderContributor.java +++ b/wicket/components/src/main/java/org/wamblee/wicket/jquery/JQueryHeaderContributor.java @@ -22,14 +22,17 @@ import org.apache.wicket.markup.html.IHeaderResponse; import org.apache.wicket.markup.html.JavascriptPackageResource; /** - * JQuery bahavior which adds the jquery javascript. + * JQuery header contribution that adds the jquery javascript and sets jQuery to + * no-conflict mode so the $ identifier is freed. Also, it checks + * the current configuration and uses the development mode jQuery library when run in + * development mode and used the minimalized jQuery code when running in deployment mode. * * @author Erik Brakkee */ public class JQueryHeaderContributor extends HeaderContributor { - static final String JQUERY_DEPLOYMENT = "jquery-1.4.2.min.js"; - static final String JQUERY_DEVELOPMENT = "jquery-1.4.2.js"; + static final String JQUERY_DEPLOYMENT = "jquery-1.5.min.js"; + static final String JQUERY_DEVELOPMENT = "jquery-1.5.js"; static final String JQUERY_NOCONFLICT = "jquery-noconflict.js"; private static HeaderContributor JQUERY_CONTRIBUTOR;