You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/05/30 09:22:20 UTC
[jira] [Commented] (WICKET-5208) Contribute jQuery 1.x or 2.x
depending on the user agent
[ https://issues.apache.org/jira/browse/WICKET-5208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670122#comment-13670122 ]
Martin Grigorov commented on WICKET-5208:
-----------------------------------------
To change the versions of jQuery use:
public class CustomJQuery extends DynamicJQueryResourceReference
{
@Override
protected String getVersion1()
{
return "jquery/jquery-1.11.0.min.js";
}
@Override
protected String getVersion2()
{
return "jquery/jquery-2.1.0.min.js";
}
}
getJavaScriptLibrarySettings().setJQueryReference(new CustomJQuery());
> Contribute jQuery 1.x or 2.x depending on the user agent
> --------------------------------------------------------
>
> Key: WICKET-5208
> URL: https://issues.apache.org/jira/browse/WICKET-5208
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 7.0.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 7.0.0
>
> Attachments: WICKET-5208.patch
>
>
> Wicket can use the ClientInfo to decide which version of jQuery do contribute - 2.0 works on all modern browsers (IE9+), while 1.x series still support IE 6/7/8.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira