Re: UPDATE: Re: Plone is now jQuery 1.9 compatible

Johannes Raggam <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Thanks for pointing this out!

There is no select_all.js script in Plone 5 anymore, but I did this
change in Mockup:

- More jQuery 1.9 compatibility changes: Change ``attr`` to ``prop`` for
  setting / getting the state of ``multiple``, ``selected``, ``checked``
  and ``disabled`` states.

Johannes


On Mon, 2015-01-12 at 14:51 +0100, Vincent Fretin wrote:
> Hi,
> 
> If fixed another issue with jQuery 1.9 :
> https://github.com/plone/Products.CMFPlone/commit/07343604f4523109bb6c7262ce4191af47e741f8
> 
> For boolean properties like selected, checked, disabled, you need to
> use prop and not attr.
> http://api.jquery.com/prop/
> 
> If somebody can verify the good use of prop on Plone 5 js, this will
> be great. I don't know if toggleSelect on Plone still exists.
> 
> Vincent
> 
> On Wed, Jan 7, 2015 at 10:27 AM, Luca Fabbri <[email protected]> wrote:
>         
>         
>         On Tue, Jan 6, 2015 at 5:12 PM, Vincent Fretin
>         <[email protected]> wrote:
>                 Hi,
>                 
>                 
>                 Happy new year everyone! 
>                 
>                 
>                 I fixed the js error on the sharing tab with jQuery
>                 1.9.
>                 
>                 The error was the following:
>                 
>                 var sharing = $('\n<table>...</table>')
>                 $('#user-group-sharing').replaceWith(sharing);
>                 
>                 Error: Syntax error, unrecognized expression:
>                 <table></table>
>                 
>                 jQuery 1.9 is more strict. If the string starts with
>                 '<' it will be handled as a html string, otherwise it
>                 will be handled as a css selector.
>                 
>                 Several solutions here, you can trim the string to be
>                 sure it starts with '<' :
>                 $($.trim('\n<table>...</table>'))
>                 
>                 You can use $.parseHTML, but it's only since jQuery
>                 1.8.
>                 
>                 Finally you can just remove the use of $() because
>                 replaceWith can get a html string.
>                 https://github.com/plone/Products.CMFPlone/commit/fc997dd9939d6e038ac549afa368d1476a192831
>                 
>                 
>                 
>                 I fixed another error in plone.schemaeditor.
>                 https://github.com/plone/plone.schemaeditor/commit/96db61a885e0d63719f49bf48d742167798a68b5
>                 
>                 It was actually already fixed on master, I didn't see
>                 it.
>                 
>                 
>         
>         
>         Thanks for sharing!
>         
>         
>         I think I had the same issue porting an add-on to Plone 5 some
>         days ago (and probably many other add-on will suffer the same
>         problem in near future).
>         
>         
>         
>          
>                 Vincent
>                 
>                 
>                 On Wed, Nov 26, 2014 at 5:40 PM, Johannes Raggam
>                 <[email protected]> wrote:
>                 
>                         Thanks for the info! Keep reporting broken
>                         Javascript.
>                         
>                         Fixing should be easy, though.
>                         
>                         
>                         On Wed, 2014-11-26 at 16:25 +0000, Victor
>                         Fernandez de Alba wrote:
>                         > Hi,
>                         > Just for the record, I finally manage to try
>                         Plone 4.3.4 with
>                         > p.q.jquery 1.9.2.1 and I've found that it
>                         breaks @@sharing tab related
>                         > JS. Back with 1.8.3 it works just ok.
>                         > Cheers,
>                         > V.
>                         >
>                         >
>                         >
>                         > On Fri Oct 10 2014 at 10:50:24 AM Johannes
>                         Raggam <[email protected]>
>                         > wrote:
>                         >
>                         >         plone.app.widgets master branch from
>                         github is shipping with
>                         >         jQuery
>                         >         1.11.1. For that to work with Plone,
>                         you need the following
>                         >         setup:
>                         >
>                         >
>                         >         [sources]
>                         >         plone.app.widgets = git
>                         >
>                          git-9UaJU3cA/F/[email protected]:plone/plone.app.widgets.git
>                         >         Products.CMFPlone = git
>                         >
>                          git-9UaJU3cA/F/[email protected]:plone/Products.CMFPlone.git
>                         branch=4.3.x
>                         >
>                         >         [versions]
>                         >         plone.app.jquery = >= 1.9.1.2  #
>                         well, p.a.widgets is
>                         >         replacing this anyways...
>                         >         plone.app.jquerytools = >= 1.6.1
>                         >
>                         >         # For Archetypes
>                         >         archetypes.referencebrowserwidget =
>                         >= 2.5.2
>                         >         archetypes.querywidget = >= 1.1.1
>                         >
>                         >
>                         >         Cheers,
>                         >         Johannes
>                         >
>                         >
>                         >         On Thu, 2014-06-19 at 11:00 +0200,
>                         Johannes Raggam wrote:
>                         >         > Recently I've made some changes to
>                         Products.CMFPlone 4.3.x,
>                         >         > plone.app.jquerytools master and
>                         the plone.app.jquery 1.9
>                         >         branches as
>                         >         > well as some add-on products to
>                         make the whole stack
>                         >         compatible with
>                         >         > jQuery 1.9, of course while still
>                         supporting jQuery 1.7.
>                         >         Older versions
>                         >         > of jQuery aren't supported
>                         anymore, but since Plone 4.3 we
>                         >         depend on
>                         >         > jQuery 1.7 anyways.
>                         >         >
>                         >         > With all those changes the Plone
>                         4.3 tests go green together
>                         >         with
>                         >         > plone.app.jquery 1.9! See:
>                         >         >
>                         >         >
>                         http://jenkins.plone.org/job/plone-4.3-python-2.7/2353/
>                         >         >
>                         >         > Of course Plone 4.3 will still
>                         ship with plone.app.jquery
>                         >         1.7. jQuery
>                         >         > 1.9 would most likely break too
>                         many add-on products. But
>                         >         from my point
>                         >         > of view we should include the
>                         reworked
>                         >         plone.app.jquerytools. I already
>                         >         > included it in the
>                         buildout.coredev 4.3 branch.
>                         >         >
>                         >         > Besides of modernizing the toolset
>                         a bit (but jQuery 1.9 is
>                         >         also years
>                         >         > old), the reasoning for this
>                         change is that Bootstrap 3 has
>                         >         a minimum
>                         >         > dependency on jQuery 1.9 which I
>                         need together with Plone
>                         >         4.3 on a
>                         >         > current project.
>                         >         >
>                         >         >
>                         >         > Cheers, Johannes
>                         >         >
>                         >         >
>                         >         >
>                         >
>                         >
>                         >         --
>                         >         programmatic  web development
>                         >         di(fh) johannes raggam / thet
>                         >         python plone zope development
>                         >         plone framework  team  member
>                         >         mail: office-//[email protected]
>                         >         web:  http://programmatic.pro
>                         >               http://bluedynamics.com
>                         >
>                         >
>                          ------------------------------------------------------------------------------
>                         >         Meet PCI DSS 3.0 Compliance
>                         Requirements with EventLog
>                         >         Analyzer
>                         >         Achieve PCI DSS 3.0 Compliant Status
>                         with Out-of-the-box PCI
>                         >         DSS Reports
>                         >         Are you Audit-Ready for PCI DSS 3.0
>                         Compliance? Download White
>                         >         paper
>                         >         Comply to PCI DSS 3.0 Requirement 10
>                         and 11.5 with EventLog
>                         >         Analyzer
>                         >
>                          http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk_______________________________________________
>                         >         Plone-developers mailing list
>                         >
>                          Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>                         >
>                          https://lists.sourceforge.net/lists/listinfo/plone-developers
>                         
>                         --
>                         programmatic  web development
>                         di(fh) johannes raggam / thet
>                         python plone zope development
>                         plone framework  team  member
>                         mail: office-//[email protected]
>                         web:  http://programmatic.pro
>                               http://bluedynamics.com
>                         
>                         
>                         
>                         
>                         ------------------------------------------------------------------------------
>                         Download BIRT iHub F-Type - The Free
>                         Enterprise-Grade BIRT Server
>                         from Actuate! Instantly Supercharge Your
>                         Business Reports and Dashboards
>                         with Interactivity, Sharing, Native Excel
>                         Exports, App Integration & more
>                         Get technology previously reserved for
>                         billion-dollar corporations, FREE
>                         http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>                         _______________________________________________
>                         Plone-developers mailing list
>                         Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>                         https://lists.sourceforge.net/lists/listinfo/plone-developers
>                         
>                 
>                 
>                 
>                 
>                 ------------------------------------------------------------------------------
>                 Dive into the World of Parallel Programming! The Go
>                 Parallel Website,
>                 sponsored by Intel and developed in partnership with
>                 Slashdot Media, is your
>                 hub for all things parallel software development, from
>                 weekly thought
>                 leadership blogs to news, videos, case studies,
>                 tutorials and more. Take a
>                 look and join the conversation now.
>                 http://goparallel.sourceforge.net
>                 _______________________________________________
>                 Plone-developers mailing list
>                 Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>                 https://lists.sourceforge.net/lists/listinfo/plone-developers
>                 
>         
>         
>         
>         -- 
>         -- luca
>         
>         twitter: http://twitter.com/keul
>         linkedin: http://linkedin.com/in/lucafbb
>         blog: http://blog.keul.it/
> 
>

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
www.gigenet.com

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEABECAAYFAlS0PrsACgkQW4mNMQxDgAfFUACgleVy2IsQNe3UWcfv6V/iRoRW
eQAAoKjkNGLiYaMS4wYPSDRlnJ6CZwQB
=Uk0+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.