Merge branch 'master' into interactions
Conflicts: demos/draggable/constrain-movement.html demos/draggable/cursor-style.html demos/draggable/default.html demos/draggable/events.html demos/draggable/handle.html demos/draggable/revert.html demos/draggable/visual-feedback.html demos/droppable/default.html grunt.js tests/unit/draggable/draggable.html tests/unit/draggable/draggable_core.js tests/unit/draggable/draggable_options.js tests/unit/draggable/draggable_test_helpers.js tests/unit/droppable/droppable.html tests/unit/droppable/droppable_options.js ui/draggable.js ui/jquery.ui.droppable.js ui/sortable.js
11
.csslintrc
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"adjoining-classes": false,
|
||||
"box-model": false,
|
||||
"compatible-vendor-prefixes": false,
|
||||
"duplicate-background-images": false,
|
||||
"import": false,
|
||||
"important": false,
|
||||
"outline-none": false,
|
||||
"overqualified-elements": false,
|
||||
"text-indent": false
|
||||
}
|
8
.gitignore
vendored
@ -1,9 +1,3 @@
|
||||
dist
|
||||
node_modules
|
||||
docs
|
||||
.project
|
||||
*~
|
||||
*.diff
|
||||
*.patch
|
||||
.DS_Store
|
||||
.settings
|
||||
.sizecache.json
|
3
.jscs.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"preset": "jquery"
|
||||
}
|
11
.jshintrc
@ -1,12 +1,17 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqnull": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"expr": true,
|
||||
"immed": true,
|
||||
"noarg": true,
|
||||
"node": true,
|
||||
"onevar": true,
|
||||
"quotmark": "double",
|
||||
"smarttabs": true,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true
|
||||
"unused": true,
|
||||
|
||||
"node": true
|
||||
}
|
||||
|
114
.mailmap
@ -1,6 +1,114 @@
|
||||
Aaron Peterson <aaronp123@yahoo.com>
|
||||
Adam Baratz <adam@adambaratz.com> <adam.baratz@gmail.com>
|
||||
Adam Sontag <ajpiano@ajpiano.com>
|
||||
Alexander Polomoshnov <alex.polomoshnov@gmail.com>
|
||||
Aliaksandr Rahalevich <saksmlz@gmail.com>
|
||||
Andrew Couch <andy@couchand.com> <acouch@bluewolf.com>
|
||||
Andrew Newcomb <ext.github@preceptsoftware.co.uk>
|
||||
Andrew Powell <andrew@shellscape.org> <andrew@shellcape.org>
|
||||
Andrew Powell <andrew@shellscape.org> <powella@gmail.com>
|
||||
Andrey Kapitcyn <ru.m157y@gmail.com>
|
||||
Ben Hollis <bhollis@amazon.com> <ben@benhollis.net>
|
||||
Benjamin Scott Boyle <benjamins.boyle@gmail.com>
|
||||
Bert ter Heide <bertjh@hotmail.com>
|
||||
Bjørn Johansen <post@bjornjohansen.no> <bjorn.johansen@metronet.no>
|
||||
Chairat Sunthornwiphat <pipo@sixhead.com>
|
||||
Christoph Rönsch <christoph.roensch@arcor.de>
|
||||
Corey Frang <gnarf37@gmail.com> <gnarf@gnarf.net>
|
||||
Courtland Allen <courtlandallen@gmail.com>
|
||||
Dan Streetman <ddstreet@ieee.org>
|
||||
Danny Trunk <dtrunk90@gmail.com> <dtrunk90@googlemail.com>
|
||||
David De Sloovere <david.desloovere@outlook.com> <david.desloovere@hotmail.com>
|
||||
David Murdoch <david@davidmurdoch.com> <musicisair@yahoo.com>
|
||||
Diego Tres <diegotres@gmail.com>
|
||||
Dominique Vincent <dominique.vincent@toitl.com>
|
||||
Doug Blood <dougblood@gmail.com>
|
||||
Douglas Cerna <douglascerna@yahoo.com> <replaceafill@system76.(none)>
|
||||
Douglas Neiner <doug@dougneiner.com> <doug@pixelgraphics.us>
|
||||
Douglas Neiner <doug@dougneiner.com> <doug@Doug-Neiners-MacBook-Pro.local>
|
||||
Dylan Just <dev@ephox.com>
|
||||
Eddie Monge <eddie@eddiemonge.com>
|
||||
Edward A Faulkner <ef@alum.mit.edu>
|
||||
Eric Hynds <eric@hynds.net>
|
||||
Ethan Romba <ethanromba@gmail.com> <ethan.romba@parivedasolutions.com>
|
||||
EungJun Yi <semtlenori@gmail.com>
|
||||
Eyal Kobrigo <kobrigo@hotmail.com>
|
||||
Filippo Cavallarin <filippo.cavallarin@codseq.it> <poplix@papuasia.org>
|
||||
Florian Gutmann <f.gutmann@chronimo.com> <blackfeet@gmx.at>
|
||||
Genie <386@mail.com>
|
||||
Guntupalli Karunakar <karunakarg@yahoo.com>
|
||||
Heiko Henning <heiko@thehennings.ch> <h.henning@educa.ch>
|
||||
Hiroshi Tomita <tomykaira@gmail.com>
|
||||
Ian Simpson <spoonlikesham@gmail.com>
|
||||
Igor Milla <igor.fsp.milla@gmail.com>
|
||||
Israel Tsadok <itsadok@gmail.com>
|
||||
Jacek Jędrzejewski <jacek.jedrzejewski@gmail.com>
|
||||
Jamie Gegerson <git@jamiegegerson.com>
|
||||
Jason Oster <jay@kodewerx.org> <jay@loyalize.com>
|
||||
Jay Merrifield <fracmak@gmail.com> <merrifieldj@pixia.com>
|
||||
Jean-Francois Remy <jeff@melix.org> <jfremy@virtuoz.com>
|
||||
Jyoti Deka <dekajp@gmail.com> <dekajp@yahoo.com>
|
||||
John Enters <github@darkdark.net>
|
||||
Jonathan Vingiano <jvingiano@gmail.com>
|
||||
Josh Varner <josh.varner@gmail.com>
|
||||
Justin Domnitz <jdomnitz@gmail.com>
|
||||
Justin MacCarthy <Justin@Rubystars.biz>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com>
|
||||
Karl Kirch <karlkrch@gmail.com> <karl.ctr.kirch@faa.gov>
|
||||
Keith Wood <kbwood@iinet.com.au> <kbwood.au@gmail.com>
|
||||
Kevin Dalman <development@allpro.net>
|
||||
Klaus Hartl <klaus.hartl@gmail.com> <klaus.hartl@googlemail.com>
|
||||
Klaus Hartl <klaus.hartl@gmail.com> <klaus.hartl@stilbuero.de>
|
||||
Kris Borchers <kris.borchers@gmail.com>
|
||||
Kris Borchers <kris.borchers@gmail.com> <k_borchers@yahoo.com>
|
||||
Corey Frang <gnarf@gnarf.net>
|
||||
Maggie Costello Wachs <fg.maggie@gmail.com> maggiewachs <maggie@filamentgroup.com>
|
||||
Krzysztof Rosiński <rozwell69@gmail.com>
|
||||
Lev Kitsis <spam4lev@gmail.com>
|
||||
Maciej Mroziński <maciej.k.mrozinski@gmail.com> <mrozik87@gmail.com>
|
||||
Maggie Wachs <maggie@filamentgroup.com>
|
||||
Maggie Wachs <maggie@filamentgroup.com> <fg.maggie@gmail.com>
|
||||
Marc Neuwirth <marc.neuwirth@gmail.com>
|
||||
Marcos Sousa <falecomigo@marcossousa.com> <marcos.sousa@corp.globo.com>
|
||||
Martin Frost <martinf55@hotmail.com>
|
||||
Mathias Stenbom <mathias@stenbom.com>
|
||||
Matt Hoskins <matt@nipltd.com> <furlined@cat-basket.org>
|
||||
Matthew Edward Hutton <meh@corefiling.co.uk>
|
||||
Max Schnur <max.schnur@gmail.com>
|
||||
Michael Hollis <hollis21@gmail.com>
|
||||
Michael Stay <metaweta@gmail.com>
|
||||
Michael Wu <michaelmwu@gmail.com>
|
||||
Mike Alsup <malsup@gmail.com>
|
||||
Milan Broum <midlis@googlemail.com>
|
||||
Mohamed Cherif Bouchelaghem <cherifbouchelaghem@yahoo.fr> <cherif@cherif.(none)>
|
||||
Monika Piotrowicz <monika.piotrowicz@gmail.com> <monika@shopify.com>
|
||||
Nick Pierpoint <nick.pierpoint@tidalsand.com>
|
||||
Ondrej Novy <novy@ondrej.org>
|
||||
Paul Bakaus <paul.bakaus@gmail.com> <paul.bakaus@googlemail.com>
|
||||
Paul Irish <paul.irish@gmail.com>
|
||||
Pavol Hluchý <lopo@losys.sk>
|
||||
Peter Heiberg <peter@heiberg.se>
|
||||
Petr Hromadko <yuriy@tokyoscale.com>
|
||||
Phillip Barnes <philbar@gmail.com> <phillipbarnes@Phillip-Barnes-Computer.local>
|
||||
Pierre-Henri Ausseil <ph.ausseil@gmail.com>
|
||||
Raymond Schwartz <skeetergraphics@gmail.com>
|
||||
Richard Worth <rdworth@gmail.com>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com>
|
||||
Rick Waldron <waldron.rick@gmail.com>
|
||||
Ryan Neufeld <ryan@neufeldmail.com>
|
||||
Ryan Olton <oltonr@gmail.com>
|
||||
Saji Nediyanchath <saji89@gmail.com> Saji <saji@saji-laptop.(none)>
|
||||
Scott Jehl <scottjehl@gmail.com> <scott@scottjehl.com>
|
||||
Sebastian Sauer <info@dynpages.de>
|
||||
Sergey Kartashov <ebishkek@yandex.ru>
|
||||
Shahyar Ghobadpour <shahyar@gmail.com>
|
||||
Shane Whittet <whittet@gmail.com>
|
||||
Shannon Pekary <spekary@gmail.com>
|
||||
Simon Sattes <simon.sattes@gmail.com>
|
||||
Stojce Slavkovski <stojce@gmail.com>
|
||||
Tarafder Ashek-E-Elahi <mail.ashek@gmail.com>
|
||||
Thibault Duplessis <thibault.duplessis@gmail.com>
|
||||
Thomas Jaggi <thomas@responsive.ch> <thomas.jaggi@gmail.com>
|
||||
Ting Kuei <ting@kuei.com>
|
||||
Todd Parker <todd@filamentgroup.com> <fg.todd@gmail.com>
|
||||
Wesley Walser <waw325@gmail.com> <wwalser@atlassian.com>
|
||||
Xavi Ramirez <xavi.rmz@gmail.com>
|
||||
Yuriy Khabarov <13real008@gmail.com> <yuriy@tokyoscale.com>
|
||||
Ziling Zhao <zilingzhao@gmail.com> <zizhao@cisco.com>
|
||||
|
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.8"
|
||||
before_script:
|
||||
- npm install -g grunt-cli
|
71
AUTHORS.txt
@ -1,20 +1,20 @@
|
||||
Authors ordered by first contribution
|
||||
A list of current team members is available at http://jqueryui.com/about
|
||||
|
||||
Paul Bakaus <paul.bakaus@googlemail.com>
|
||||
Paul Bakaus <paul.bakaus@gmail.com>
|
||||
Richard Worth <rdworth@gmail.com>
|
||||
Yehuda Katz <wycats@gmail.com>
|
||||
Sean Catchpole <sean@sunsean.com>
|
||||
John Resig <jeresig@gmail.com>
|
||||
Tane Piper <piper.tane@gmail.com>
|
||||
Dmitri Gaskin <dmitrig01@gmail.com>
|
||||
Klaus Hartl <klaus.hartl@googlemail.com>
|
||||
Klaus Hartl <klaus.hartl@gmail.com>
|
||||
Stefan Petre <stefan.petre@gmail.com>
|
||||
Gilles van den Hoven <gilles@webunity.nl>
|
||||
Micheil Bryan Smith <micheil@brandedcode.com>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com>
|
||||
Marc Grabanski <m@marcgrabanski.com>
|
||||
Keith Wood <kbwood.au@gmail.com>
|
||||
Keith Wood <kbwood@iinet.com.au>
|
||||
Brandon Aaron <brandon.aaron@gmail.com>
|
||||
Scott González <scott.gonzalez@gmail.com>
|
||||
Eduardo Lundgren <eduardolundgren@gmail.com>
|
||||
@ -27,12 +27,12 @@ David Bolter <david.bolter@gmail.com>
|
||||
Chi Cheng <cloudream@gmail.com>
|
||||
Ca-Phun Ung <pazu2k@gmail.com>
|
||||
Ariel Flesler <aflesler@gmail.com>
|
||||
Maggie Costello Wachs <fg.maggie@gmail.com>
|
||||
Maggie Wachs <maggie@filamentgroup.com>
|
||||
Scott Jehl <scott@scottjehl.com>
|
||||
Todd Parker <fg.todd@gmail.com>
|
||||
Andrew Powell <powella@gmail.com>
|
||||
Todd Parker <todd@filamentgroup.com>
|
||||
Andrew Powell <andrew@shellscape.org>
|
||||
Brant Burnett <btburnett3@gmail.com>
|
||||
Douglas Neiner <doug@pixelgraphics.us>
|
||||
Douglas Neiner <doug@dougneiner.com>
|
||||
Paul Irish <paul.irish@gmail.com>
|
||||
Ralph Whitbeck <ralph.whitbeck@gmail.com>
|
||||
Thibault Duplessis <thibault.duplessis@gmail.com>
|
||||
@ -79,16 +79,16 @@ Phillip Barnes <philbar@gmail.com>
|
||||
Kyle Wilkinson <kai@wikyd.org>
|
||||
Khaled AlHourani <me@khaledalhourani.com>
|
||||
Marian Rudzynski <mr@impaled.org>
|
||||
Jean-Francois Remy <jfremy@virtuoz.com>
|
||||
Doug Blood <dougblood@gmail.com>
|
||||
Jean-Francois Remy <jeff@melix.org>
|
||||
Doug Blood
|
||||
Filippo Cavallarin <filippo.cavallarin@codseq.it>
|
||||
Heiko Henning <h.henning@educa.ch>
|
||||
Heiko Henning <heiko@thehennings.ch>
|
||||
Aliaksandr Rahalevich <saksmlz@gmail.com>
|
||||
Mario Visic <mario@mariovisic.com>
|
||||
Xavi Ramirez <xavi.rmz@gmail.com>
|
||||
Max Schnur <max.schnur@gmail.com>
|
||||
Saji Nediyanchath <saji89@gmail.com>
|
||||
Corey Frang <gnarf@gnarf.net>
|
||||
Corey Frang <gnarf37@gmail.com>
|
||||
Aaron Peterson <aaronp123@yahoo.com>
|
||||
Ivan Peters <ivan@ivanpeters.com>
|
||||
Mohamed Cherif Bouchelaghem <cherifbouchelaghem@yahoo.fr>
|
||||
@ -106,7 +106,7 @@ Adam Parod <mystic414@gmail.com>
|
||||
Guillaume Gautreau <guillaume+github@ghusse.com>
|
||||
Marcel Toele <EleotleCram@gmail.com>
|
||||
Dan Streetman <ddstreet@ieee.org>
|
||||
Matt Hoskins <furlined@cat-basket.org>
|
||||
Matt Hoskins <matt@nipltd.com>
|
||||
Giovanni Giacobbi <giovanni@giacobbi.net>
|
||||
Kyle Florence <kyle.florence@gmail.com>
|
||||
Pavol Hluchý <lopo@losys.sk>
|
||||
@ -124,7 +124,7 @@ Israel Tsadok <itsadok@gmail.com>
|
||||
Carson McDonald <carson@ioncannon.net>
|
||||
Jason Davies <jason@jasondavies.com>
|
||||
Garrison Locke <gplocke@gmail.com>
|
||||
David Murdoch <musicisair@yahoo.com>
|
||||
David Murdoch <david@davidmurdoch.com>
|
||||
Benjamin Scott Boyle <benjamins.boyle@gmail.com>
|
||||
Jesse Baird <jebaird@gmail.com>
|
||||
Jonathan Vingiano <jvingiano@gmail.com>
|
||||
@ -150,11 +150,10 @@ Marwan Al Jubeh <marwan.aljubeh@gmail.com>
|
||||
Milan Broum <midlis@googlemail.com>
|
||||
Sebastian Sauer <info@dynpages.de>
|
||||
Gaëtan Muller <m.gaetan89@gmail.com>
|
||||
Michel Weimerskirch <michel@weimerskirch.net>
|
||||
William Griffiths <william@ycymro.com>
|
||||
Stojce Slavkovski <stojce@gmail.com>
|
||||
David Soms <david.soms@gmail.com>
|
||||
David De Sloovere <david.desloovere@hotmail.com>
|
||||
David De Sloovere <david.desloovere@outlook.com>
|
||||
Michael P. Jung <michael.jung@terreon.de>
|
||||
Shannon Pekary <spekary@gmail.com>
|
||||
Matthew Edward Hutton <meh@corefiling.co.uk>
|
||||
@ -168,12 +167,12 @@ Genie <386@mail.com>
|
||||
Rick Waldron <waldron.rick@gmail.com>
|
||||
Ian Simpson <spoonlikesham@gmail.com>
|
||||
Lev Kitsis <spam4lev@gmail.com>
|
||||
Ted VanToll <tj.vantoll@gmail.com>
|
||||
TJ VanToll <tj.vantoll@gmail.com>
|
||||
Justin Domnitz <jdomnitz@gmail.com>
|
||||
Douglas Cerna <douglascerna@yahoo.com>
|
||||
Bert ter Heide <bertjh@hotmail.com>
|
||||
Jasvir Nagra <jasvir@gmail.com>
|
||||
Petr Hromadko <yuriy@tokyoscale.com>
|
||||
Yuriy Khabarov <13real008@gmail.com>
|
||||
Harri Kilpiö <harri.kilpio@gmail.com>
|
||||
Lado Lomidze <lado.lomidze@gmail.com>
|
||||
Amir E. Aharoni <amir.aharoni@mail.huji.ac.il>
|
||||
@ -198,7 +197,7 @@ Lee Rowlands <lee.rowlands@previousnext.com.au>
|
||||
Timmy Willison <timmywillisn@gmail.com>
|
||||
Karl Swedberg <kswedberg@gmail.com>
|
||||
Baoju Yuan <the_guy_1987@hotmail.com>
|
||||
Maciej Mroziński <mrozik87@gmail.com>
|
||||
Maciej Mroziński <maciej.k.mrozinski@gmail.com>
|
||||
Luis Dalmolin <luis.nh@gmail.com>
|
||||
Mark Aaron Shirley <maspwr@gmail.com>
|
||||
Martin Hoch <martin@fidion.de>
|
||||
@ -216,8 +215,8 @@ Marc-Andre Lafortune <github@marc-andre.ca>
|
||||
Nate Eagle <nate.eagle@teamaol.com>
|
||||
David Souther <davidsouther@gmail.com>
|
||||
Mathias Stenbom <mathias@stenbom.com>
|
||||
Avinash R <nashpapa@gmail.com>
|
||||
Sergey Kartashov <ebishkek@yandex.ru>
|
||||
Avinash R <nashpapa@gmail.com>
|
||||
Ethan Romba <ethanromba@gmail.com>
|
||||
Cory Gackenheimer <cory.gack@gmail.com>
|
||||
Juan Pablo Kaniefsky <jpkaniefsky@gmail.com>
|
||||
@ -226,13 +225,41 @@ Anika Henke <anika@selfthinker.org>
|
||||
Samuel Bovée <samycookie2000@yahoo.fr>
|
||||
Fabrício Matté <ult_combo@hotmail.com>
|
||||
Viktor Kojouharov <vkojouharov@gmail.com>
|
||||
Pawel Maruszczyk <lord_t@o2.pl>
|
||||
Pawel Maruszczyk (http://hrabstwo.net)
|
||||
Pavel Selitskas <p.selitskas@gmail.com>
|
||||
Bjørn Johansen <bjorn.johansen@metronet.no>
|
||||
Bjørn Johansen <post@bjornjohansen.no>
|
||||
Matthieu Penant <thieum22@hotmail.com>
|
||||
Dominic Barnes <dominic@dbarnes.info>
|
||||
David Sullivan <david.sullivan@gmail.com>
|
||||
Thomas Jaggi <thomas.jaggi@gmail.com>
|
||||
Thomas Jaggi <thomas@responsive.ch>
|
||||
Vahid Sohrabloo <vahid4134@gmail.com>
|
||||
Travis Carden <travis.carden@gmail.com>
|
||||
Bruno M. Custódio <bruno@brunomcustodio.com>
|
||||
Nathanael Silverman <nathanael.silverman@gmail.com>
|
||||
Christian Wenz <christian@wenz.org>
|
||||
Steve Urmston <steve@urm.st>
|
||||
Zaven Muradyan <megalivoithos@gmail.com>
|
||||
Woody Gilk <shadowhand@deviantart.com>
|
||||
Zbigniew Motyka <zbigniew.motyka@gmail.com>
|
||||
Suhail Alkowaileet <xsoh.k7@gmail.com>
|
||||
Toshi MARUYAMA <marutosijp2@yahoo.co.jp>
|
||||
David Hansen <hansede@gmail.com>
|
||||
Brian Grinstead <briangrinstead@gmail.com>
|
||||
Christian Klammer <christian314159@gmail.com>
|
||||
Steven Luscher <jquerycla@steveluscher.com>
|
||||
Gan Eng Chin <engchin.gan@gmail.com>
|
||||
Gabriel Schulhof <gabriel.schulhof@intel.com>
|
||||
Alexander Schmitz <arschmitz@gmail.com>
|
||||
Vilhjálmur Skúlason <vis@dmm.is>
|
||||
Siebrand Mazeland <s.mazeland@xs4all.nl>
|
||||
Mohsen Ekhtiari <mohsenekhtiari@yahoo.com>
|
||||
Pere Orga <gotrunks@gmail.com>
|
||||
Jasper de Groot <mail@ugomobi.com>
|
||||
Stephane Deschamps <stephane.deschamps@gmail.com>
|
||||
Jyoti Deka <dekajp@gmail.com>
|
||||
Andrei Picus <office.nightcrawler@gmail.com>
|
||||
Ondrej Novy <novy@ondrej.org>
|
||||
Jacob McCutcheon <jacob.mccutcheon@gmail.com>
|
||||
Monika Piotrowicz <monika.piotrowicz@gmail.com>
|
||||
Imants Horsts <imants.horsts@inbox.lv>
|
||||
Eric Dahl <eric.c.dahl@gmail.com>
|
||||
|
178
CONTRIBUTING.md
@ -1,89 +1,36 @@
|
||||
# Contributing to jQuery UI
|
||||
|
||||
1. [Getting Involved](#getting-involved)
|
||||
2. [Discussion](#discussion)
|
||||
3. [How To Report Bugs](#how-to-report-bugs)
|
||||
4. [jQuery UI Coding Standards](#jquery-ui-coding-standards)
|
||||
5. [Tips For Bug Patching](#tips-for-bug-patching)
|
||||
Welcome! Thanks for your interest in contributing to jQuery UI. Most of our information on how to contribute to this and all other jQuery Foundation projects is over at [contribute.jquery.org](http://contribute.jquery.org). You'll definitely want to take a look at the articles on contributing [code](http://contribute.jquery.org/code).
|
||||
|
||||
You may also want to take a look at our [commit & pull request guide](http://contribute.jquery.org/commits-and-pull-requests/) and [style guides](http://contribute.jquery.org/style-guide/) for instructions on how to maintain your fork and submit your code. Before we can merge any pull request, we'll also need you to sign our [contributor license agreement](http://contribute.jquery.org/cla).
|
||||
|
||||
You can find us on [IRC](http://irc.jquery.org), specifically in #jqueryui-dev should you have any questions. If you've never contributed to open source before, we've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/). For other forms of discussion and support, please see the [jQuery UI support center](http://jqueryui.com/support/).
|
||||
|
||||
## Getting Involved
|
||||
|
||||
There are a number of ways to get involved with the development of jQuery UI. Even if you've never contributed code to an Open Source project before, we're always looking for help identifying bugs, writing and reducing test cases and documentation.
|
||||
|
||||
This is the best way to contribute to jQuery UI. Please read through the full guide detailing [How to Report Bugs](#how-to-report-bugs).
|
||||
This is the best way to contribute to jQuery UI. Please read through the full guide detailing [How to Report Bugs](http://contribute.jquery.org/bug-reports/).
|
||||
|
||||
## Discussion
|
||||
### Weekly Meetings
|
||||
|
||||
### Forum and IRC
|
||||
|
||||
The jQuery UI development team frequently tracks posts on the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui). If you have longer posts or questions please feel free to post them there. If you think you've found a bug please [file it in the bug tracker](#how-to-report-bugs).
|
||||
|
||||
Additionally most of the jQuery UI development team can be found in the [#jqueryui-dev](http://webchat.freenode.net/?channels=jqueryui-dev) IRC channel on irc.freenode.net.
|
||||
|
||||
### Weekly Status Meetings
|
||||
|
||||
Every week (unless otherwise noted) the jQuery UI dev team has a meeting to discuss the progress of current work and to bring forward possible new blocker bugs for discussion.
|
||||
|
||||
The meeting is held in the [#jquery-meeting](http://webchat.freenode.net/?channels=jquery-meeting) IRC channel on irc.freenode.net at [Noon EST](http://www.timeanddate.com/worldclock/fixedtime.html?month=1&day=17&year=2011&hour=12&min=0&sec=0&p1=43) on Wednesdays.
|
||||
|
||||
Past Meeting Notes:
|
||||
[2008 - 2011](https://docs.google.com/spreadsheet/ccc?key=0AusvKVL7jmFUcHVBQk9tMUxkRGl0emVwZGdLd0QtUlE),
|
||||
[2012 - current](https://docs.google.com/spreadsheet/ccc?key=0ArIM4UVbwE-3dFg1T0k4VlE1bF82Nm9tbW90cVNxN0E)
|
||||
|
||||
|
||||
## How to Report Bugs
|
||||
|
||||
### Make sure it is a jQuery UI bug
|
||||
|
||||
Many bugs reported to our bug tracker are actually bugs in user code, not in jQuery UI code. Keep in mind that just because your code throws an error and the console points to a line number inside of jQuery or jQuery UI, this does *not* mean the bug is a jQuery UI bug.
|
||||
|
||||
If you are new to jQuery and/or jQuery UI, it is usually a much better idea to ask for help first in the [Using jQuery Forum](http://forum.jquery.com/using-jquery), the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) or the [jQuery IRC channel](http://webchat.freenode.net/?channels=%23jquery). You will get much quicker support, and you will help avoid tying up the jQuery UI team with invalid bug reports. These same resources can also be useful if you want to confirm that your bug is indeed a bug in jQuery UI before filing any tickets.
|
||||
|
||||
|
||||
### Disable any browser extensions
|
||||
|
||||
Make sure you have reproduced the bug with all browser extensions and add-ons disabled, as these can sometimes cause things to break in interesting and unpredictable ways. Try using incognito, stealth or anonymous browsing modes.
|
||||
|
||||
|
||||
### Try the latest version of jQuery UI
|
||||
|
||||
Bugs in old versions of jQuery UI may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the latest stable release.
|
||||
|
||||
### Try an older version of jQuery UI
|
||||
|
||||
Sometimes, bugs are introduced in newer versions of jQuery UI that do not exist in previous versions. When possible, it can be useful to try testing with an older release.
|
||||
|
||||
### Reduce, reduce, reduce!
|
||||
|
||||
When you are experiencing a problem, the most useful thing you can possibly do is to [reduce your code](http://webkit.org/quality/reduction.html) to the bare minimum required to reproduce the issue. This makes it *much* easier to isolate and fix the offending code. Bugs that are reported without reduced test cases generally take much longer to fix than bugs that are submitted with them, so you really should try to do this if at all possible.
|
||||
|
||||
## jQuery UI Coding Standards
|
||||
|
||||
See: [jQuery UI Coding Standards](http://wiki.jqueryui.com/w/page/12137737/Coding%20standards)
|
||||
Every week (unless otherwise noted) the jQuery UI team has a meeting to discuss the progress of current work and to bring forward possible new blockers for discussion. The meeting is held on [IRC](http://irc.jquery.org) in the #jquery-meeting channel at [Noon EST](http://www.timeanddate.com/worldclock/fixedtime.html?month=1&day=17&year=2011&hour=12&min=0&sec=0&p1=43) on Wednesdays. Meeting notes are posted on http://meetings.jquery.org/category/ui/ after each meeting.
|
||||
|
||||
## Tips For Bug Patching
|
||||
|
||||
### Environment: localhost w/ PHP, Node.js & Grunt
|
||||
|
||||
### Environment: localhost w/ PHP, Node & Grunt
|
||||
|
||||
jQuery UI uses node & gruntjs to automate the building and validation of source code.
|
||||
jQuery UI uses Node.js & Grunt to automate the building and validation of source code.
|
||||
|
||||
Some tests depend on PHP running locally, so make sure you have the following installed:
|
||||
|
||||
* Some kind of localhost server program that supports PHP (any will do)
|
||||
* Node.js
|
||||
* NPM (comes with the latest version of Node.js)
|
||||
* Grunt (install with: `npm install grunt -g`
|
||||
|
||||
|
||||
Maintaining a list of platform specific instructions is outside of the scope of this document and there is plenty of existing documentation for the above technologies.
|
||||
|
||||
* A web server with PHP support (any will do, such as [XAMPP](http://www.apachefriends.org/en/xampp.html) or [MAMP](http://www.mamp.info/en/index.html))
|
||||
* [Node.js](http://nodejs.org/) (includes NPM, necessary for the next step)
|
||||
* Grunt (install with: `npm install -g grunt`
|
||||
|
||||
### Build a Local Copy of jQuery UI
|
||||
|
||||
Create a fork of the jQuery UI repo on github at http://github.com/jquery/jquery-ui
|
||||
Create a fork of the jQuery UI repo on GitHub at http://github.com/jquery/jquery-ui.
|
||||
|
||||
Change directory to your web root directory, whatever that might be:
|
||||
|
||||
@ -91,115 +38,46 @@ Change directory to your web root directory, whatever that might be:
|
||||
$ cd /path/to/your/www/root/
|
||||
```
|
||||
|
||||
Clone your jQuery UI fork to work locally
|
||||
Clone your jQuery UI fork to work locally.
|
||||
|
||||
*Note: be sure to replace `[USERNAME]` with your GitHub username.*
|
||||
|
||||
```bash
|
||||
$ git clone git@github.com:username/jquery-ui.git
|
||||
$ git clone git@github.com:[USERNAME]/jquery-ui.git
|
||||
```
|
||||
|
||||
Change directory to the newly created dir jquery-ui/
|
||||
Change to the newly created directory.
|
||||
|
||||
```bash
|
||||
$ cd jquery-ui
|
||||
```
|
||||
|
||||
Add the jQuery master as a remote. I label mine "upstream"
|
||||
Add the official jQuery repository as a remote. We recommend naming it "upstream".
|
||||
|
||||
```bash
|
||||
$ git remote add upstream git://github.com/jquery/jquery-ui.git
|
||||
```
|
||||
|
||||
Get in the habit of pulling in the "upstream" master to stay up to date as jQuery UI receives new commits
|
||||
Get in the habit of pulling in the "upstream" master to stay up to date as jQuery UI receives new commits.
|
||||
|
||||
```bash
|
||||
$ git pull upstream master
|
||||
```
|
||||
|
||||
Install the dependencies.
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run grunt:
|
||||
|
||||
```bash
|
||||
$ grunt
|
||||
```
|
||||
|
||||
To run the tests for a specific plugin in your browser, open the approriate file from the /tests/unit/ directory, for example: http://localhost/tests/unit/accordion/accordion.html. The domain will be dependent on your local server configuation; if there is a port, be sure to include it.
|
||||
To run the tests for a specific plugin in your browser, open the approriate file from the `/tests/unit/` directory, for example: `http://localhost/tests/unit/accordion/accordion.html`. The domain will be dependent on your local server configuation; if there is a port, be sure to include it.
|
||||
|
||||
Success! You just tested jQuery UI!
|
||||
Ideally you would test in all of our [supported browsers](http://jqueryui.com/browser-support/), but if you don't have all of these browsers available, that's ok.
|
||||
|
||||
|
||||
### Fix a bug from a ticket filed at bugs.jqueryui.com:
|
||||
|
||||
**NEVER write your patches to the master branch** - it gets messy (I say this from experience!)
|
||||
|
||||
**ALWAYS USE A "TOPIC" BRANCH!** Like so (#### = the ticket #)...
|
||||
|
||||
Make sure you start with your up-to-date master:
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
```
|
||||
|
||||
Create and checkout a new branch that includes the ticket #
|
||||
|
||||
```bash
|
||||
$ git checkout -b bug_####
|
||||
|
||||
# ( Explanation: this useful command will:
|
||||
# "checkout" a "-b" (branch) by the name of "bug_####"
|
||||
# or create it if it doesn't exist )
|
||||
```
|
||||
|
||||
Now you're on branch: bug_####
|
||||
|
||||
Determine the file you'll be working in...
|
||||
|
||||
Open up the corresponding /tests/unit/?????.js and add the initial failing unit tests. This may seem awkward at first, but in the long run it will make sense. To truly and efficiently patch a bug, you need to be working against that bug.
|
||||
|
||||
Next, open the source files and make your changes
|
||||
|
||||
Run http://localhost/tests/unit/???? --> **ALL TESTS MUST PASS**
|
||||
|
||||
Once you're satisfied with your patch...
|
||||
|
||||
Stage the files to be tracked:
|
||||
|
||||
```bash
|
||||
$ git add filename
|
||||
# (you can use "git status" to list the files you've changed)
|
||||
```
|
||||
|
||||
|
||||
( I recommend NEVER, EVER using "git add . " )
|
||||
|
||||
Once you've staged all of your changed files, go ahead and commit them
|
||||
|
||||
```bash
|
||||
$ git commit -m "Component: Brief description of fix. Fixes #0000 - Ticket description."
|
||||
```
|
||||
|
||||
See the [commit message style guide](http://wiki.jqueryui.com/w/page/25941597/Commit%20Message%20Style%20Guide) for more details on how to format your commit message.
|
||||
|
||||
For a multiple line commit message, leave off the `-m "description"`.
|
||||
|
||||
You will then be led into vi (or the text editor that you have set up) to complete your commit message.
|
||||
|
||||
Then, push your branch with the bug fix commits to your github fork
|
||||
|
||||
```bash
|
||||
$ git push origin -u bug_####
|
||||
```
|
||||
|
||||
Before you tackle your next bug patch, return to the master:
|
||||
|
||||
```bash
|
||||
$ git checkout master
|
||||
```
|
||||
|
||||
|
||||
|
||||
### jQuery UI supports the following browsers:
|
||||
|
||||
* Chrome Current-1
|
||||
* Safari Current-1
|
||||
* Firefox Current-1
|
||||
* Opera Current-1
|
||||
* IE 7+
|
||||
Make sure to read our [commits and pull requests documentation](http://dev.contribute.jquery.org/commits-and-pull-requests/) for full details on working with branches and forks, as well as our commit guidelines.
|
||||
|
231
Gruntfile.js
Normal file
@ -0,0 +1,231 @@
|
||||
module.exports = function( grunt ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var
|
||||
// files
|
||||
coreFiles = [
|
||||
"core.js",
|
||||
"widget.js",
|
||||
"mouse.js",
|
||||
"interaction.js",
|
||||
"draggable.js",
|
||||
"droppable.js",
|
||||
"resizable.js",
|
||||
"selectable.js",
|
||||
"sortable.js",
|
||||
"effect.js"
|
||||
],
|
||||
|
||||
uiFiles = coreFiles.map(function( file ) {
|
||||
return "ui/" + file;
|
||||
}).concat( expandFiles( "ui/*.js" ).filter(function( file ) {
|
||||
return coreFiles.indexOf( file.substring( 3 ) ) === -1;
|
||||
}) ),
|
||||
|
||||
allI18nFiles = expandFiles( "ui/i18n/*.js" ),
|
||||
|
||||
cssFiles = [
|
||||
"core",
|
||||
"accordion",
|
||||
"autocomplete",
|
||||
"button",
|
||||
"datepicker",
|
||||
"dialog",
|
||||
"menu",
|
||||
"progressbar",
|
||||
"resizable",
|
||||
"selectable",
|
||||
"selectmenu",
|
||||
"slider",
|
||||
"spinner",
|
||||
"tabs",
|
||||
"tooltip",
|
||||
"theme"
|
||||
].map(function( component ) {
|
||||
return "themes/base/" + component + ".css";
|
||||
}),
|
||||
|
||||
// minified files
|
||||
minify = {
|
||||
options: {
|
||||
preserveComments: false
|
||||
},
|
||||
main: {
|
||||
options: {
|
||||
banner: createBanner( uiFiles )
|
||||
},
|
||||
files: {
|
||||
"dist/jquery-ui.min.js": "dist/jquery-ui.js"
|
||||
}
|
||||
},
|
||||
i18n: {
|
||||
options: {
|
||||
banner: createBanner( allI18nFiles )
|
||||
},
|
||||
files: {
|
||||
"dist/i18n/jquery-ui-i18n.min.js": "dist/i18n/jquery-ui-i18n.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
compareFiles = {
|
||||
all: [
|
||||
"dist/jquery-ui.js",
|
||||
"dist/jquery-ui.min.js"
|
||||
]
|
||||
};
|
||||
|
||||
function mapMinFile( file ) {
|
||||
return "dist/" + file.replace( /\.js$/, ".min.js" ).replace( /ui\//, "minified/" );
|
||||
}
|
||||
|
||||
function expandFiles( files ) {
|
||||
return grunt.util._.pluck( grunt.file.expandMapping( files ), "src" ).map(function( values ) {
|
||||
return values[ 0 ];
|
||||
});
|
||||
}
|
||||
|
||||
uiFiles.concat( allI18nFiles ).forEach(function( file ) {
|
||||
minify[ file ] = {
|
||||
options: {
|
||||
banner: createBanner()
|
||||
},
|
||||
files: {}
|
||||
};
|
||||
minify[ file ].files[ mapMinFile( file ) ] = file;
|
||||
});
|
||||
|
||||
uiFiles.forEach(function( file ) {
|
||||
// TODO this doesn't do anything until https://github.com/rwldrn/grunt-compare-size/issues/13
|
||||
compareFiles[ file ] = [ file, mapMinFile( file ) ];
|
||||
});
|
||||
|
||||
// grunt plugins
|
||||
grunt.loadNpmTasks( "grunt-contrib-jshint" );
|
||||
grunt.loadNpmTasks( "grunt-contrib-uglify" );
|
||||
grunt.loadNpmTasks( "grunt-contrib-concat" );
|
||||
grunt.loadNpmTasks( "grunt-contrib-qunit" );
|
||||
grunt.loadNpmTasks( "grunt-contrib-csslint" );
|
||||
grunt.loadNpmTasks( "grunt-jscs-checker" );
|
||||
grunt.loadNpmTasks( "grunt-html" );
|
||||
grunt.loadNpmTasks( "grunt-compare-size" );
|
||||
grunt.loadNpmTasks( "grunt-git-authors" );
|
||||
grunt.loadNpmTasks( "grunt-esformatter" );
|
||||
// local testswarm and build tasks
|
||||
grunt.loadTasks( "build/tasks" );
|
||||
|
||||
function stripDirectory( file ) {
|
||||
return file.replace( /.+\/(.+?)>?$/, "$1" );
|
||||
}
|
||||
|
||||
function createBanner( files ) {
|
||||
// strip folders
|
||||
var fileNames = files && files.map( stripDirectory );
|
||||
return "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
|
||||
"<%= grunt.template.today('isoDate') %>\n" +
|
||||
"<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
|
||||
(files ? "* Includes: " + fileNames.join(", ") + "\n" : "") +
|
||||
"* Copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
|
||||
" Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n";
|
||||
}
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON( "package.json" ),
|
||||
files: {
|
||||
dist: "<%= pkg.name %>-<%= pkg.version %>"
|
||||
},
|
||||
compare_size: compareFiles,
|
||||
concat: {
|
||||
ui: {
|
||||
options: {
|
||||
banner: createBanner( uiFiles ),
|
||||
stripBanners: {
|
||||
block: true
|
||||
}
|
||||
},
|
||||
src: uiFiles,
|
||||
dest: "dist/jquery-ui.js"
|
||||
},
|
||||
i18n: {
|
||||
options: {
|
||||
banner: createBanner( allI18nFiles )
|
||||
},
|
||||
src: allI18nFiles,
|
||||
dest: "dist/i18n/jquery-ui-i18n.js"
|
||||
},
|
||||
css: {
|
||||
options: {
|
||||
banner: createBanner( cssFiles ),
|
||||
stripBanners: {
|
||||
block: true
|
||||
}
|
||||
},
|
||||
src: cssFiles,
|
||||
dest: "dist/jquery-ui.css"
|
||||
}
|
||||
},
|
||||
jscs: {
|
||||
// datepicker, sortable, resizable and draggable are getting rewritten, ignore until that's done
|
||||
ui: [ "ui/*.js", "!ui/datepicker.js", "!ui/sortable.js", "!ui/resizable.js", "!ui/draggable.js" ],
|
||||
// TODO enable this once we have a tool that can help with fixing formatting of existing files
|
||||
// tests: "tests/unit/**/*.js",
|
||||
grunt: "Gruntfile.js"
|
||||
},
|
||||
uglify: minify,
|
||||
htmllint: {
|
||||
// ignore files that contain invalid html, used only for ajax content testing
|
||||
all: grunt.file.expand( [ "demos/**/*.html", "tests/**/*.html" ] ).filter(function( file ) {
|
||||
return !/(?:ajax\/content\d\.html|tabs\/data\/test\.html|tests\/unit\/core\/core.*\.html)/.test( file );
|
||||
})
|
||||
},
|
||||
qunit: {
|
||||
files: expandFiles( "tests/unit/**/*.html" ).filter(function( file ) {
|
||||
// disabling everything that doesn't (quite) work with PhantomJS for now
|
||||
// TODO except for all|index|test, try to include more as we go
|
||||
return !( /(all|index|test|dialog|tooltip)\.html$/ ).test( file );
|
||||
})
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: true
|
||||
},
|
||||
all: [
|
||||
"ui/*.js",
|
||||
"Gruntfile.js",
|
||||
"build/**/*.js",
|
||||
"tests/unit/**/*.js"
|
||||
]
|
||||
},
|
||||
csslint: {
|
||||
base_theme: {
|
||||
src: "themes/base/*.css",
|
||||
options: {
|
||||
csslintrc: ".csslintrc"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
esformatter: {
|
||||
options: {
|
||||
preset: "jquery"
|
||||
},
|
||||
ui: "ui/*.js",
|
||||
tests: "tests/unit/**/*.js",
|
||||
build: {
|
||||
options: {
|
||||
skipHashbang: true
|
||||
},
|
||||
src: "build/**/*.js"
|
||||
},
|
||||
grunt: "Gruntfile.js"
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask( "default", [ "lint", "test" ]);
|
||||
grunt.registerTask( "lint", [ "asciilint", "jshint", "jscs", "csslint", "htmllint" ]);
|
||||
grunt.registerTask( "test", [ "qunit" ]);
|
||||
grunt.registerTask( "sizer", [ "concat:ui", "uglify:main", "compare_size:all" ]);
|
||||
grunt.registerTask( "sizer_all", [ "concat:ui", "uglify", "compare_size" ]);
|
||||
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
Copyright 2013 jQuery Foundation and other contributors,
|
||||
Copyright 2014 jQuery Foundation and other contributors,
|
||||
http://jqueryui.com/
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
|
67
README.md
@ -1,16 +1,16 @@
|
||||
[jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web
|
||||
================================
|
||||
# [jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web
|
||||
|
||||
jQuery UI provides interactions like Drag and Drop and widgets like Autocomplete, Tabs and Slider and makes these as easy to use as jQuery itself.
|
||||
jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Whether you're building highly interactive web applications, or you just need to add a date picker to a form control, jQuery UI is the perfect choice.
|
||||
|
||||
If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get started. Or visit the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) for discussions and questions.
|
||||
If you want to use jQuery UI, go to [jqueryui.com](http://jqueryui.com) to get started, [jqueryui.com/demos/](http://jqueryui.com/demos/) for demos, [api.jqueryui.com](http://api.jqueryui.com/) for API documentation, or the [Using jQuery UI Forum](http://forum.jquery.com/using-jquery-ui) for discussions and questions.
|
||||
|
||||
If you want to report a bug/issue, please visit [bugs.jqueryui.com](http://bugs.jqueryui.com).
|
||||
|
||||
If you are interested in helping develop jQuery UI, you are in the right place.
|
||||
To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui) or in #jquery on irc.freednode.net.
|
||||
To discuss development with team members and the community, visit the [Developing jQuery UI Forum](http://forum.jquery.com/developing-jquery-ui) or [#jqueryui-dev on irc.freenode.net](http://irc.jquery.org/).
|
||||
|
||||
|
||||
For contributors
|
||||
---
|
||||
## For contributors
|
||||
|
||||
If you want to help and provide a patch for a bugfix or new feature, please take
|
||||
a few minutes and look at [our Getting Involved guide](http://wiki.jqueryui.com/w/page/35263114/Getting-Involved).
|
||||
@ -22,8 +22,7 @@ pull request for that branch. Don't mix unrelated changes. You can use the commi
|
||||
message as the description for the pull request.
|
||||
|
||||
|
||||
Running the Unit Tests
|
||||
---
|
||||
## Running the Unit Tests
|
||||
|
||||
Run the unit tests with a local server that supports PHP. No database is required. Pre-configured php local servers are available for Windows and Mac. Here are some options:
|
||||
|
||||
@ -33,36 +32,34 @@ Run the unit tests with a local server that supports PHP. No database is require
|
||||
- [Mongoose (most platforms)](http://code.google.com/p/mongoose/)
|
||||
|
||||
|
||||
Building jQuery UI
|
||||
---
|
||||
## Building jQuery UI
|
||||
|
||||
jQuery UI uses the [grunt](http://github.com/cowboy/grunt) build system. Building jQuery UI requires node.js and a command line zip program.
|
||||
jQuery UI uses the [Grunt](http://github.com/gruntjs/grunt) build system.
|
||||
|
||||
Install grunt.
|
||||
To build jQuery UI, you must have [node.js](http://nodejs.org/) installed and then run the following commands:
|
||||
|
||||
`npm install grunt -g`
|
||||
```sh
|
||||
|
||||
Clone the jQuery UI git repo.
|
||||
# Install the Grunt CLI
|
||||
npm install -g grunt-cli
|
||||
|
||||
`git clone git://github.com/jquery/jquery-ui.git`
|
||||
# Clone the jQuery UI git repo
|
||||
git clone git://github.com/jquery/jquery-ui.git
|
||||
cd jquery-ui
|
||||
|
||||
`cd jquery-ui`
|
||||
# Install the node module dependencies
|
||||
npm install
|
||||
|
||||
Install node modules.
|
||||
# Run the concat task to concatenate files
|
||||
grunt concat
|
||||
|
||||
`npm install`
|
||||
|
||||
Run grunt.
|
||||
|
||||
`grunt build`
|
||||
|
||||
There are many other tasks that can be run through grunt. For a list of all tasks:
|
||||
|
||||
`grunt --help`
|
||||
# There are many other tasks that can be run through Grunt.
|
||||
# For a list of all tasks:
|
||||
grunt --help
|
||||
```
|
||||
|
||||
|
||||
For committers
|
||||
---
|
||||
## For committers
|
||||
|
||||
When looking at pull requests, first check for [proper commit messages](http://wiki.jqueryui.com/w/page/12137724/Bug-Fixing-Guide).
|
||||
|
||||
@ -75,7 +72,7 @@ These should be squashed before landing in master.
|
||||
|
||||
Fetch the remote first:
|
||||
|
||||
git fetch [their-fork.git] [their-branch]
|
||||
git fetch [their-fork.git] [their-branch]
|
||||
|
||||
Then cherry-pick the commit(s):
|
||||
|
||||
@ -83,7 +80,7 @@ Then cherry-pick the commit(s):
|
||||
|
||||
If you need to edit the commit message:
|
||||
|
||||
git cherry-pick -e [sha-of-commit]
|
||||
git cherry-pick -e [sha-of-commit]
|
||||
|
||||
If you need to edit the changes:
|
||||
|
||||
@ -91,9 +88,9 @@ If you need to edit the changes:
|
||||
# make changes
|
||||
git commit --author="[author-name-and-email]"
|
||||
|
||||
If it should go to the stable brach, cherry-pick it to stable:
|
||||
If it should go to the stable branch, cherry-pick it to stable:
|
||||
|
||||
git checkout 1-8-stable
|
||||
git cherry-pick -x [sha-of-commit-from-master]
|
||||
git checkout 1-10-stable
|
||||
git cherry-pick -x [sha-of-commit-from-master]
|
||||
|
||||
*NOTE: Do not cherry-pick into 1-8-stable until you have pushed the commit from master upstream.*
|
||||
*NOTE: Do not cherry-pick into 1-10-stable until you have pushed the commit from master upstream.*
|
||||
|
@ -30,7 +30,7 @@
|
||||
],
|
||||
"category": "effect",
|
||||
"homepage": "http://jqueryui.com/",
|
||||
"demo": "http://jqueryui.com/effects/",
|
||||
"demo": "http://jqueryui.com/effect/",
|
||||
"docs": "http://api.jqueryui.com/category/effects-core/"
|
||||
},
|
||||
"position": {
|
||||
|
@ -23,15 +23,23 @@
|
||||
"highlight": {
|
||||
"description": "Highlights the background of an element in a defined color for a custom duration."
|
||||
},
|
||||
"puff": {
|
||||
"dependencies": [ "effect-scale" ],
|
||||
"description": "Creates a puff effect by scaling the element up and hiding it at the same time."
|
||||
},
|
||||
"pulsate": {
|
||||
"description": "Pulsates an element n times by changing the opacity to zero and back."
|
||||
},
|
||||
"scale": {
|
||||
"description": "Grows or shrinks an element and its content. Restores an elemnt to its original size."
|
||||
"dependencies": [ "effect-size" ],
|
||||
"description": "Grows or shrinks an element and its content. Restores an element to its original size."
|
||||
},
|
||||
"shake": {
|
||||
"description": "Shakes an element horizontally or vertically n times."
|
||||
},
|
||||
"size": {
|
||||
"description": "Resize an element to a specified width and height."
|
||||
},
|
||||
"slide": {
|
||||
"description": "Slides an element in and out of the viewport."
|
||||
}
|
||||
|
@ -1,16 +1,18 @@
|
||||
#!/usr/bin/env node
|
||||
/*global cat:true cd:true echo:true exec:true exit:true*/
|
||||
/* global cat:true, cd:true, echo:true, exec:true, exit:true */
|
||||
|
||||
// Usage:
|
||||
// stable release: node release.js
|
||||
// pre-release: node release.js --pre-release {version}
|
||||
// test run: node release.js --remote={repo}
|
||||
// - repo: "/tmp/repo" (filesystem), "user/repo" (github), "http://mydomain/repo.git" (another domain)
|
||||
|
||||
"use strict";
|
||||
|
||||
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime, preRelease,
|
||||
var baseDir, downloadBuilder, repoDir, prevVersion, newVersion, nextVersion, tagTime, preRelease, repo,
|
||||
fs = require( "fs" ),
|
||||
path = require( "path" ),
|
||||
rnewline = /\r?\n/,
|
||||
repo = "git@github.com:jquery/jquery-ui.git",
|
||||
branch = "master";
|
||||
|
||||
walk([
|
||||
@ -25,7 +27,8 @@ walk([
|
||||
confirm,
|
||||
|
||||
section( "building release" ),
|
||||
buildRelease,
|
||||
buildReleaseBranch,
|
||||
buildPackage,
|
||||
|
||||
section( "pushing tag" ),
|
||||
confirmReview,
|
||||
@ -66,13 +69,6 @@ function cloneRepo() {
|
||||
if ( exec( "npm install" ).code !== 0 ) {
|
||||
abort( "Error installing dependencies." );
|
||||
}
|
||||
// We need download.jqueryui.com in order to generate themes.
|
||||
// We only generate themes for stable releases.
|
||||
if ( !preRelease ) {
|
||||
if ( exec( "npm install download.jqueryui.com" ).code !== 0 ) {
|
||||
abort( "Error installing dependencies." );
|
||||
}
|
||||
}
|
||||
echo();
|
||||
}
|
||||
|
||||
@ -109,8 +105,7 @@ function getVersions() {
|
||||
|
||||
if ( preRelease ) {
|
||||
newVersion = preRelease;
|
||||
// Note: prevVersion is not currently used for pre-releases. The TODO
|
||||
// below about 1.10.0 applies here as well.
|
||||
// Note: prevVersion is not currently used for pre-releases.
|
||||
prevVersion = nextVersion = currentVersion;
|
||||
} else {
|
||||
newVersion = currentVersion.substr( 0, currentVersion.length - 3 );
|
||||
@ -119,15 +114,14 @@ function getVersions() {
|
||||
minor = parseInt( parts[ 1 ], 10 );
|
||||
patch = parseInt( parts[ 2 ], 10 );
|
||||
|
||||
// TODO: handle 1.10.0
|
||||
// Also see comment above about pre-releases
|
||||
if ( patch === 0 ) {
|
||||
abort( "This script is not smart enough to handle the 1.10.0 release." );
|
||||
if ( minor === 0 && patch === 0 ) {
|
||||
abort( "This script is not smart enough to handle major release (eg. 2.0.0)." );
|
||||
} else if ( patch === 0 ) {
|
||||
prevVersion = git( "for-each-ref --count=1 --sort=-authordate --format='%(refname:short)' refs/tags/" + [ major, minor - 1 ].join( "." ) + "*" ).trim();
|
||||
} else {
|
||||
prevVersion = [ major, minor, patch - 1 ].join( "." );
|
||||
}
|
||||
|
||||
prevVersion = patch === 0 ?
|
||||
[ major, minor - 1, 0 ].join( "." ) :
|
||||
[ major, minor, patch - 1 ].join( "." );
|
||||
nextVersion = [ major, minor, patch + 1 ].join( "." ) + "pre";
|
||||
}
|
||||
|
||||
@ -135,9 +129,8 @@ function getVersions() {
|
||||
echo( "After the release, the version will be " + nextVersion.cyan + "." );
|
||||
}
|
||||
|
||||
function buildRelease() {
|
||||
var pkg,
|
||||
releaseTask = preRelease ? "release" : "release_cdn";
|
||||
function buildReleaseBranch() {
|
||||
var pkg;
|
||||
|
||||
echo( "Creating " + "release".cyan + " branch..." );
|
||||
git( "checkout -b release", "Error creating release branch." );
|
||||
@ -158,12 +151,6 @@ function buildRelease() {
|
||||
}
|
||||
echo();
|
||||
|
||||
echo( "Building release..." );
|
||||
if ( exec( "grunt " + releaseTask ).code !== 0 ) {
|
||||
abort( "Error building release." );
|
||||
}
|
||||
echo();
|
||||
|
||||
echo( "Committing release artifacts..." );
|
||||
git( "add *.jquery.json", "Error adding manifest files to git." );
|
||||
git( "commit -am 'Tagging the " + newVersion + " release.'",
|
||||
@ -175,6 +162,173 @@ function buildRelease() {
|
||||
tagTime = git( "log -1 --format='%ad'", "Error getting tag timestamp." ).trim();
|
||||
}
|
||||
|
||||
function buildPackage( callback ) {
|
||||
if( preRelease ) {
|
||||
return buildPreReleasePackage( callback );
|
||||
} else {
|
||||
return buildCDNPackage( callback );
|
||||
}
|
||||
}
|
||||
|
||||
function buildPreReleasePackage( callback ) {
|
||||
var build, files, jqueryUi, packer, target, targetZip;
|
||||
|
||||
echo( "Build pre-release Package" );
|
||||
|
||||
jqueryUi = new downloadBuilder.JqueryUi( path.resolve( "." ) );
|
||||
build = new downloadBuilder.Builder( jqueryUi, ":all:" );
|
||||
packer = new downloadBuilder.Packer( build, null, {
|
||||
addTests: true,
|
||||
bundleSuffix: "",
|
||||
skipDocs: true,
|
||||
skipTheme: true
|
||||
});
|
||||
target = "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version;
|
||||
targetZip = target + ".zip";
|
||||
|
||||
return walk([
|
||||
function( callback ) {
|
||||
echo( "Building release files" );
|
||||
packer.pack(function( error, _files ) {
|
||||
if( error ) {
|
||||
abort( error.stack );
|
||||
}
|
||||
files = _files.map(function( file ) {
|
||||
|
||||
// Strip first path
|
||||
file.path = file.path.replace( /^[^\/]*\//, "" );
|
||||
return file;
|
||||
|
||||
}).filter(function( file ) {
|
||||
|
||||
// Filter development-bundle content only
|
||||
return (/^development-bundle/).test( file.path );
|
||||
}).map(function( file ) {
|
||||
|
||||
// Strip development-bundle
|
||||
file.path = file.path.replace( /^development-bundle\//, "" );
|
||||
return file;
|
||||
|
||||
});
|
||||
return callback();
|
||||
});
|
||||
},
|
||||
function() {
|
||||
downloadBuilder.util.createZip( files, targetZip, function( error ) {
|
||||
if ( error ) {
|
||||
abort( error.stack );
|
||||
}
|
||||
echo( "Built zip package at " + path.relative( "../..", targetZip ).cyan );
|
||||
return callback();
|
||||
});
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
function buildCDNPackage( callback ) {
|
||||
var build, output, target, targetZip,
|
||||
add = function( file ) {
|
||||
output.push( file );
|
||||
},
|
||||
jqueryUi = new downloadBuilder.JqueryUi( path.resolve( "." ) ),
|
||||
themeGallery = downloadBuilder.themeGallery( jqueryUi );
|
||||
|
||||
echo( "Build CDN Package" );
|
||||
|
||||
build = new downloadBuilder.Builder( jqueryUi, ":all:" );
|
||||
output = [];
|
||||
target = "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version + "-cdn";
|
||||
targetZip = target + ".zip";
|
||||
|
||||
[ "AUTHORS.txt", "MIT-LICENSE.txt", "package.json" ].map(function( name ) {
|
||||
return build.get( name );
|
||||
}).forEach( add );
|
||||
|
||||
// "ui/*.js"
|
||||
build.componentFiles.filter(function( file ) {
|
||||
return (/^ui\//).test( file.path );
|
||||
}).forEach( add );
|
||||
|
||||
// "ui/*.min.js"
|
||||
build.componentMinFiles.filter(function( file ) {
|
||||
return (/^ui\//).test( file.path );
|
||||
}).forEach( add );
|
||||
|
||||
// "i18n/*.js"
|
||||
build.i18nFiles.rename( /^ui\//, "" ).forEach( add );
|
||||
build.i18nMinFiles.rename( /^ui\//, "" ).forEach( add );
|
||||
build.bundleI18n.into( "i18n/" ).forEach( add );
|
||||
build.bundleI18nMin.into( "i18n/" ).forEach( add );
|
||||
|
||||
build.bundleJs.forEach( add );
|
||||
build.bundleJsMin.forEach( add );
|
||||
|
||||
walk( themeGallery.map(function( theme ) {
|
||||
return function( callback ) {
|
||||
var themeCssOnlyRe, themeDirRe,
|
||||
folderName = theme.folderName(),
|
||||
packer = new downloadBuilder.Packer( build, theme, {
|
||||
skipDocs: true
|
||||
});
|
||||
// TODO improve code by using custom packer instead of download packer (Packer)
|
||||
themeCssOnlyRe = new RegExp( "development-bundle/themes/" + folderName + "/jquery.ui.theme.css" );
|
||||
themeDirRe = new RegExp( "css/" + folderName );
|
||||
packer.pack(function( error, files ) {
|
||||
if ( error ) {
|
||||
abort( error.stack );
|
||||
}
|
||||
// Add theme files.
|
||||
files
|
||||
// Pick only theme files we need on the bundle.
|
||||
.filter(function( file ) {
|
||||
if ( themeCssOnlyRe.test( file.path ) || themeDirRe.test( file.path ) ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})
|
||||
// Convert paths the way bundle needs
|
||||
.map(function( file ) {
|
||||
file.path = file.path
|
||||
|
||||
// Remove initial package name eg. "jquery-ui-1.10.0.custom"
|
||||
.split( "/" ).slice( 1 ).join( "/" )
|
||||
|
||||
.replace( /development-bundle\/themes/, "css" )
|
||||
.replace( /css/, "themes" )
|
||||
|
||||
// Make jquery-ui-1.10.0.custom.css into jquery-ui.css, or jquery-ui-1.10.0.custom.min.css into jquery-ui.min.css
|
||||
.replace( /jquery-ui-.*?(\.min)*\.css/, "jquery-ui$1.css" );
|
||||
|
||||
return file;
|
||||
}).forEach( add );
|
||||
return callback();
|
||||
});
|
||||
};
|
||||
}).concat([function() {
|
||||
var crypto = require( "crypto" );
|
||||
|
||||
// Create MD5 manifest
|
||||
output.push({
|
||||
path: "MANIFEST",
|
||||
data: output.sort(function( a, b ) {
|
||||
return a.path.localeCompare( b.path );
|
||||
}).map(function( file ) {
|
||||
var md5 = crypto.createHash( "md5" );
|
||||
md5.update( file.data );
|
||||
return file.path + " " + md5.digest( "hex" );
|
||||
}).join( "\n" )
|
||||
});
|
||||
|
||||
downloadBuilder.util.createZip( output, targetZip, function( error ) {
|
||||
if ( error ) {
|
||||
abort( error.stack );
|
||||
}
|
||||
echo( "Built zip CDN package at " + path.relative( "../..", targetZip ).cyan );
|
||||
return callback();
|
||||
});
|
||||
}]));
|
||||
}
|
||||
|
||||
function pushRelease() {
|
||||
echo( "Pushing release to GitHub..." );
|
||||
git( "push --tags", "Error pushing tags to GitHub." );
|
||||
@ -357,6 +511,48 @@ function writePackage( pkg ) {
|
||||
}
|
||||
|
||||
function bootstrap( fn ) {
|
||||
getRemote(function( remote ) {
|
||||
if ( (/:/).test( remote ) || fs.existsSync( remote ) ) {
|
||||
repo = remote;
|
||||
} else {
|
||||
repo = "git@github.com:" + remote + ".git";
|
||||
}
|
||||
_bootstrap( fn );
|
||||
});
|
||||
}
|
||||
|
||||
function getRemote( fn ) {
|
||||
var matches, remote;
|
||||
|
||||
console.log( "Determining remote repo..." );
|
||||
process.argv.forEach(function( arg ) {
|
||||
matches = /--remote=(.+)/.exec( arg );
|
||||
if ( matches ) {
|
||||
remote = matches[ 1 ];
|
||||
}
|
||||
});
|
||||
|
||||
if ( remote ) {
|
||||
fn( remote );
|
||||
return;
|
||||
}
|
||||
|
||||
console.log();
|
||||
console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
|
||||
console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
|
||||
console.log( " !! !!" );
|
||||
console.log( " !! Using jquery/jquery-ui !!" );
|
||||
console.log( " !! !!" );
|
||||
console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
|
||||
console.log( " !!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
|
||||
console.log();
|
||||
console.log( "Press enter to continue, or ctrl+c to cancel." );
|
||||
prompt(function() {
|
||||
fn( "jquery/jquery-ui" );
|
||||
});
|
||||
}
|
||||
|
||||
function _bootstrap( fn ) {
|
||||
console.log( "Determining release type..." );
|
||||
preRelease = process.argv.indexOf( "--pre-release" );
|
||||
if ( preRelease !== -1 ) {
|
||||
@ -381,7 +577,7 @@ function bootstrap( fn ) {
|
||||
fs.mkdirSync( baseDir );
|
||||
|
||||
console.log( "Installing dependencies..." );
|
||||
require( "child_process" ).exec( "npm install shelljs colors", function( error ) {
|
||||
require( "child_process" ).exec( "npm install shelljs colors download.jqueryui.com@1.10.8", function( error ) {
|
||||
if ( error ) {
|
||||
console.log( error );
|
||||
return process.exit( 1 );
|
||||
@ -389,6 +585,7 @@ function bootstrap( fn ) {
|
||||
|
||||
require( "shelljs/global" );
|
||||
require( "colors" );
|
||||
downloadBuilder = require( "download.jqueryui.com" );
|
||||
|
||||
fn();
|
||||
});
|
||||
|
@ -2,9 +2,6 @@ module.exports = function( grunt ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
var path = require( "path" ),
|
||||
fs = require( "fs" );
|
||||
|
||||
grunt.registerTask( "manifest", "Generate jquery.json manifest files", function() {
|
||||
var pkg = grunt.config( "pkg" ),
|
||||
base = {
|
||||
@ -26,8 +23,8 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
|
||||
name: "ui.effect-{plugin}",
|
||||
title: "jQuery UI {Plugin} Effect",
|
||||
keywords: [ "effect", "show", "hide" ],
|
||||
homepage: "http://jqueryui.com/{plugin}-effect/",
|
||||
demo: "http://jqueryui.com/{plugin}-effect/",
|
||||
homepage: "http://jqueryui.com/effect/",
|
||||
demo: "http://jqueryui.com/effect/",
|
||||
docs: "http://api.jqueryui.com/{plugin}-effect/",
|
||||
dependencies: [ "effect" ]
|
||||
}
|
||||
@ -84,139 +81,41 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() {
|
||||
function replaceVersion( source ) {
|
||||
return source.replace( /@VERSION/g, grunt.config( "pkg.version" ) );
|
||||
}
|
||||
function copyFile( src, dest ) {
|
||||
if ( /(js|css)$/.test( src ) ) {
|
||||
grunt.file.copy( src, dest, {
|
||||
process: replaceVersion
|
||||
});
|
||||
} else {
|
||||
grunt.file.copy( src, dest );
|
||||
}
|
||||
}
|
||||
var files = grunt.file.expandFiles( this.file.src ),
|
||||
target = this.file.dest + "/",
|
||||
strip = this.data.strip,
|
||||
renameCount = 0,
|
||||
fileName;
|
||||
if ( typeof strip === "string" ) {
|
||||
strip = new RegExp( "^" + grunt.template.process( strip, grunt.config() ).replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ) );
|
||||
}
|
||||
files.forEach(function( fileName ) {
|
||||
var targetFile = strip ? fileName.replace( strip, "" ) : fileName;
|
||||
copyFile( fileName, target + targetFile );
|
||||
});
|
||||
grunt.log.writeln( "Copied " + files.length + " files." );
|
||||
for ( fileName in this.data.renames ) {
|
||||
renameCount += 1;
|
||||
copyFile( fileName, target + grunt.template.process( this.data.renames[ fileName ], grunt.config() ) );
|
||||
}
|
||||
if ( renameCount ) {
|
||||
grunt.log.writeln( "Renamed " + renameCount + " files." );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
grunt.registerMultiTask( "zip", "Create a zip file for release", function() {
|
||||
// TODO switch back to adm-zip for better cross-platform compability once it actually works
|
||||
// 0.1.3 works, but result can't be unzipped
|
||||
// its also a lot slower then zip program, probably due to how its used...
|
||||
// var files = grunt.file.expandFiles( "dist/" + this.file.src + "/**/*" );
|
||||
// grunt.log.writeln( "Creating zip file " + this.file.dest );
|
||||
|
||||
//var AdmZip = require( "adm-zip" );
|
||||
//var zip = new AdmZip();
|
||||
//files.forEach(function( file ) {
|
||||
// grunt.verbose.writeln( "Zipping " + file );
|
||||
// // rewrite file names from dist folder (created by build), drop the /dist part
|
||||
// zip.addFile(file.replace(/^dist/, "" ), fs.readFileSync( file ) );
|
||||
//});
|
||||
//zip.writeZip( "dist/" + this.file.dest );
|
||||
//grunt.log.writeln( "Wrote " + files.length + " files to " + this.file.dest );
|
||||
|
||||
var done = this.async(),
|
||||
dest = this.file.dest,
|
||||
src = grunt.template.process( this.file.src, grunt.config() );
|
||||
grunt.utils.spawn({
|
||||
cmd: "zip",
|
||||
args: [ "-r", dest, src ],
|
||||
opts: {
|
||||
cwd: 'dist'
|
||||
}
|
||||
}, function( err ) {
|
||||
if ( err ) {
|
||||
grunt.log.error( err );
|
||||
done();
|
||||
return;
|
||||
}
|
||||
grunt.log.writeln( "Zipped " + dest );
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerMultiTask( "md5", "Create list of md5 hashes for CDN uploads", function() {
|
||||
// remove dest file before creating it, to make sure itself is not included
|
||||
if ( fs.existsSync( this.file.dest ) ) {
|
||||
fs.unlinkSync( this.file.dest );
|
||||
}
|
||||
var crypto = require( "crypto" ),
|
||||
dir = this.file.src + "/",
|
||||
hashes = [];
|
||||
grunt.file.expandFiles( dir + "**/*" ).forEach(function( fileName ) {
|
||||
var hash = crypto.createHash( "md5" );
|
||||
hash.update( grunt.file.read( fileName, "ascii" ) );
|
||||
hashes.push( fileName.replace( dir, "" ) + " " + hash.digest( "hex" ) );
|
||||
});
|
||||
grunt.file.write( this.file.dest, hashes.join( "\n" ) + "\n" );
|
||||
grunt.log.writeln( "Wrote " + this.file.dest + " with " + hashes.length + " hashes" );
|
||||
});
|
||||
|
||||
grunt.registerTask( "generate_themes", function() {
|
||||
var download, done,
|
||||
distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() ),
|
||||
target = "dist/" + grunt.template.process( grunt.config( "files.themes" ), grunt.config() ) + "/";
|
||||
|
||||
try {
|
||||
require.resolve( "download.jqueryui.com" );
|
||||
} catch( error ) {
|
||||
throw new Error( "You need to manually install download.jqueryui.com for this task to work" );
|
||||
}
|
||||
|
||||
download = require( "download.jqueryui.com" )({
|
||||
config: {
|
||||
"jqueryUi": {
|
||||
"stable": { "path": path.resolve( __dirname + "/../../" + distFolder ) }
|
||||
},
|
||||
"jquery": "skip"
|
||||
}
|
||||
});
|
||||
|
||||
done = this.async();
|
||||
download.buildThemesBundle(function( error, files ) {
|
||||
if ( error ) {
|
||||
grunt.log.error( error );
|
||||
return done( false );
|
||||
}
|
||||
|
||||
done(
|
||||
files.every(function( file ) {
|
||||
try {
|
||||
grunt.file.write( target + file.path, file.data );
|
||||
} catch( err ) {
|
||||
grunt.log.error( err );
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}) && grunt.log.writeln( "Generated at " + target )
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
grunt.registerTask( "clean", function() {
|
||||
require( "rimraf" ).sync( "dist" );
|
||||
});
|
||||
|
||||
grunt.registerTask( "asciilint", function() {
|
||||
var valid = true,
|
||||
files = grunt.file.expand({ filter: "isFile" }, "ui/*.js" );
|
||||
files.forEach(function( filename ) {
|
||||
var i, c,
|
||||
text = grunt.file.read( filename );
|
||||
|
||||
// Ensure files use only \n for line endings, not \r\n
|
||||
if ( /\x0d\x0a/.test( text ) ) {
|
||||
grunt.log.error( filename + ": Incorrect line endings (\\r\\n)" );
|
||||
valid = false;
|
||||
}
|
||||
|
||||
// Ensure only ASCII chars so script tags don't need a charset attribute
|
||||
if ( text.length !== Buffer.byteLength( text, "utf8" ) ) {
|
||||
grunt.log.error( filename + ": Non-ASCII characters detected:" );
|
||||
for ( i = 0; i < text.length; i++ ) {
|
||||
c = text.charCodeAt( i );
|
||||
if ( c > 127 ) {
|
||||
grunt.log.error( "- position " + i + ": " + c );
|
||||
grunt.log.error( "-- " + text.substring( i - 20, i + 20 ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
valid = false;
|
||||
}
|
||||
});
|
||||
if ( valid ) {
|
||||
grunt.log.ok( files.length + " files lint free." );
|
||||
}
|
||||
return valid;
|
||||
});
|
||||
|
||||
};
|
||||
|
@ -4,6 +4,7 @@ module.exports = function( grunt ) {
|
||||
|
||||
var versions = {
|
||||
"git": "git",
|
||||
"1.10": "1.10.0 1.10.1 1.10.2",
|
||||
"1.9": "1.9.0 1.9.1",
|
||||
"1.8": "1.8.0 1.8.1 1.8.2 1.8.3",
|
||||
"1.7": "1.7 1.7.1 1.7.2",
|
||||
@ -14,9 +15,9 @@ var versions = {
|
||||
"Autocomplete": "autocomplete/autocomplete.html",
|
||||
"Button": "button/button.html",
|
||||
"Core": "core/core.html",
|
||||
"Core_deprecated": "core/core_deprecated.html",
|
||||
"Datepicker": "datepicker/datepicker.html",
|
||||
"Dialog": "dialog/dialog.html",
|
||||
"Dialog_deprecated": "dialog/dialog_deprecated.html",
|
||||
"Draggable": "draggable/draggable.html",
|
||||
"Droppable": "droppable/droppable.html",
|
||||
"Effects": "effects/effects.html",
|
||||
@ -25,6 +26,7 @@ var versions = {
|
||||
"Progressbar": "progressbar/progressbar.html",
|
||||
"Resizable": "resizable/resizable.html",
|
||||
"Selectable": "selectable/selectable.html",
|
||||
"Selectmenu": "selectmenu/selectmenu.html",
|
||||
"Slider": "slider/slider.html",
|
||||
"Sortable": "sortable/sortable.html",
|
||||
"Spinner": "spinner/spinner.html",
|
||||
@ -33,37 +35,41 @@ var versions = {
|
||||
"Widget": "widget/widget.html"
|
||||
};
|
||||
|
||||
function submit( commit, runs, configFile, version, done ) {
|
||||
function submit( commit, runs, configFile, extra, done ) {
|
||||
var testName,
|
||||
testswarm = require( "testswarm" ),
|
||||
config = grunt.file.readJSON( configFile ).jqueryui;
|
||||
version = version ? ( version + " " ) : "";
|
||||
for ( testName in runs ) {
|
||||
runs[ testName] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
|
||||
config = grunt.file.readJSON( configFile ).jqueryui,
|
||||
commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit;
|
||||
|
||||
if ( extra ) {
|
||||
extra = " (" + extra + ")";
|
||||
}
|
||||
testswarm.createClient( {
|
||||
|
||||
for ( testName in runs ) {
|
||||
runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
|
||||
}
|
||||
|
||||
testswarm.createClient({
|
||||
url: config.swarmUrl,
|
||||
pollInterval: 10000,
|
||||
timeout: 1000 * 60 * 45
|
||||
} )
|
||||
})
|
||||
.addReporter( testswarm.reporters.cli )
|
||||
.auth( {
|
||||
.auth({
|
||||
id: config.authUsername,
|
||||
token: config.authToken
|
||||
} )
|
||||
.addjob(
|
||||
{
|
||||
name: 'jQuery UI ' + version + '#<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
|
||||
runs: runs,
|
||||
runMax: config.runMax,
|
||||
browserSets: config.browserSets
|
||||
}, function( err, passed ) {
|
||||
if ( err ) {
|
||||
grunt.log.error( err );
|
||||
}
|
||||
done( passed );
|
||||
})
|
||||
.addjob({
|
||||
name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
|
||||
runs: runs,
|
||||
runMax: config.runMax,
|
||||
browserSets: ["popular-no-ie6"]
|
||||
}, function( error, passed ) {
|
||||
if ( error ) {
|
||||
grunt.log.error( error );
|
||||
}
|
||||
);
|
||||
done( passed );
|
||||
});
|
||||
}
|
||||
|
||||
grunt.registerTask( "testswarm", function( commit, configFile ) {
|
||||
@ -82,7 +88,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, mino
|
||||
allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version;
|
||||
}
|
||||
});
|
||||
submit( commit, allTests, configFile, minor + " core", this.async() );
|
||||
submit( commit, allTests, configFile, "core " + minor, this.async() );
|
||||
});
|
||||
|
||||
};
|
||||
|
@ -21,7 +21,7 @@
|
||||
},
|
||||
"button": {
|
||||
"dependencies": [],
|
||||
"description": "Enhances a form with themable buttons.",
|
||||
"description": "Enhances a form with themeable buttons.",
|
||||
"keywords": [
|
||||
"form",
|
||||
"radio",
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Collapse content</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Customize icons</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Fill space</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#accordion-resizer {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Open on hoverintent</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - No auto height</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Accordion - Sortable</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.sortable.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
/* IE has layout issues when sorting (see #5413) */
|
||||
|
@ -1,14 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects Demos</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
<li><a href="default.html">Default functionality</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,14 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects Demos</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul>
|
||||
<li><a href="default.html">Default functionality</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Categories</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-category {
|
||||
@ -21,15 +21,23 @@
|
||||
</style>
|
||||
<script>
|
||||
$.widget( "custom.catcomplete", $.ui.autocomplete, {
|
||||
_create: function() {
|
||||
this._super();
|
||||
this.widget().menu( "option", "items", "> :not(.ui-autocomplete-category)" );
|
||||
},
|
||||
_renderMenu: function( ul, items ) {
|
||||
var that = this,
|
||||
currentCategory = "";
|
||||
$.each( items, function( index, item ) {
|
||||
var li;
|
||||
if ( item.category != currentCategory ) {
|
||||
ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
|
||||
currentCategory = item.category;
|
||||
}
|
||||
that._renderItemData( ul, item );
|
||||
li = that._renderItemData( ul, item );
|
||||
if ( item.category ) {
|
||||
li.attr( "aria-label", item.category + " : " + item.label );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -3,22 +3,22 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Combobox</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<script src="../../ui/jquery.ui.tooltip.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<script src="../../ui/tooltip.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-combobox {
|
||||
.custom-combobox {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
.ui-combobox-toggle {
|
||||
.custom-combobox-toggle {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
@ -28,19 +28,20 @@
|
||||
*height: 1.7em;
|
||||
*top: 0.1em;
|
||||
}
|
||||
.ui-combobox-input {
|
||||
.custom-combobox-input {
|
||||
margin: 0;
|
||||
padding: 0.3em;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function( $ ) {
|
||||
$.widget( "ui.combobox", {
|
||||
$.widget( "custom.combobox", {
|
||||
_create: function() {
|
||||
this.wrapper = $( "<span>" )
|
||||
.addClass( "ui-combobox" )
|
||||
.addClass( "custom-combobox" )
|
||||
.insertAfter( this.element );
|
||||
|
||||
this.element.hide();
|
||||
this._createAutocomplete();
|
||||
this._createShowAllButton();
|
||||
},
|
||||
@ -53,7 +54,7 @@
|
||||
.appendTo( this.wrapper )
|
||||
.val( value )
|
||||
.attr( "title", "" )
|
||||
.addClass( "ui-state-default ui-combobox-input ui-widget ui-widget-content ui-corner-left" )
|
||||
.addClass( "custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left" )
|
||||
.autocomplete({
|
||||
delay: 0,
|
||||
minLength: 0,
|
||||
@ -76,7 +77,8 @@
|
||||
},
|
||||
|
||||
_createShowAllButton: function() {
|
||||
var wasOpen = false;
|
||||
var input = this.input,
|
||||
wasOpen = false;
|
||||
|
||||
$( "<a>" )
|
||||
.attr( "tabIndex", -1 )
|
||||
@ -90,7 +92,7 @@
|
||||
text: false
|
||||
})
|
||||
.removeClass( "ui-corner-all" )
|
||||
.addClass( "ui-corner-right ui-combobox-toggle" )
|
||||
.addClass( "custom-combobox-toggle ui-corner-right" )
|
||||
.mousedown(function() {
|
||||
wasOpen = input.autocomplete( "widget" ).is( ":visible" );
|
||||
})
|
||||
@ -152,7 +154,7 @@
|
||||
this._delay(function() {
|
||||
this.input.tooltip( "close" ).attr( "title", "" );
|
||||
}, 2500 );
|
||||
this.input.data( "ui-autocomplete" ).term = "";
|
||||
this.input.autocomplete( "instance" ).term = "";
|
||||
},
|
||||
|
||||
_destroy: function() {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Custom data and display</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#project-label {
|
||||
@ -66,7 +66,7 @@
|
||||
return false;
|
||||
}
|
||||
})
|
||||
.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
|
||||
.autocomplete( "instance" )._renderItem = function( ul, item ) {
|
||||
return $( "<li>" )
|
||||
.append( "<a>" + item.label + "<br>" + item.desc + "</a>" )
|
||||
.appendTo( ul );
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Accent folding</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 999 B After Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 81 B |
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Scrollable results</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete {
|
||||
|
@ -3,17 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Multiple, remote</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-loading {
|
||||
background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat;
|
||||
background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
@ -29,7 +29,7 @@
|
||||
// don't navigate away from the field on tab when selecting an item
|
||||
.bind( "keydown", function( event ) {
|
||||
if ( event.keyCode === $.ui.keyCode.TAB &&
|
||||
$( this ).data( "ui-autocomplete" ).menu.active ) {
|
||||
$( this ).autocomplete( "instance" ).menu.active ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
})
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Multiple values</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
@ -48,7 +48,7 @@
|
||||
// don't navigate away from the field on tab when selecting an item
|
||||
.bind( "keydown", function( event ) {
|
||||
if ( event.keyCode === $.ui.keyCode.TAB &&
|
||||
$( this ).data( "ui-autocomplete" ).menu.active ) {
|
||||
$( this ).autocomplete( "instance" ).menu.active ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
})
|
||||
|
@ -3,17 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote JSONP datasource</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-loading {
|
||||
background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat;
|
||||
background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
|
||||
}
|
||||
#city { width: 25em; }
|
||||
</style>
|
||||
@ -27,21 +27,13 @@
|
||||
$( "#city" ).autocomplete({
|
||||
source: function( request, response ) {
|
||||
$.ajax({
|
||||
url: "http://ws.geonames.org/searchJSON",
|
||||
url: "http://gd.geobytes.com/AutoCompleteCity",
|
||||
dataType: "jsonp",
|
||||
data: {
|
||||
featureClass: "P",
|
||||
style: "full",
|
||||
maxRows: 12,
|
||||
name_startsWith: request.term
|
||||
q: request.term
|
||||
},
|
||||
success: function( data ) {
|
||||
response( $.map( data.geonames, function( item ) {
|
||||
return {
|
||||
label: item.name + (item.adminName1 ? ", " + item.adminName1 : "") + ", " + item.countryName,
|
||||
value: item.name
|
||||
}
|
||||
}));
|
||||
response( data );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -3,17 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote with caching</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-loading {
|
||||
background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat;
|
||||
background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
@ -3,17 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - Remote datasource</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-loading {
|
||||
background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat;
|
||||
background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
@ -3,16 +3,18 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Autocomplete - XML data parsed once</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<script src="../../ui/autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
|
||||
.ui-autocomplete-loading {
|
||||
background: white url("images/ui-anim_basic_16x16.gif") right center no-repeat;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Checkboxes</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Icons</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Radios</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Split button</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-menu { position: absolute; width: 100px; }
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Button - Toolbar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#toolbar {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Populate alternate field</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,18 +3,18 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Animations</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-blind.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-bounce.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-clip.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-drop.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-fold.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-slide.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<script src="../../ui/effect-blind.js"></script>
|
||||
<script src="../../ui/effect-bounce.js"></script>
|
||||
<script src="../../ui/effect-clip.js"></script>
|
||||
<script src="../../ui/effect-drop.js"></script>
|
||||
<script src="../../ui/effect-fold.js"></script>
|
||||
<script src="../../ui/effect-slide.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display button bar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Format date</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Select a Date Range</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -1,8 +1,18 @@
|
||||
/* Arabic Translation for jQuery UI date picker plugin. */
|
||||
/* Khaled Alhourani -- me@khaledalhourani.com */
|
||||
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['ar'] = {
|
||||
(function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define([ "../jquery.ui.datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}(function( datepicker ) {
|
||||
datepicker.regional['ar'] = {
|
||||
closeText: 'إغلاق',
|
||||
prevText: '<السابق',
|
||||
nextText: 'التالي>',
|
||||
@ -19,5 +29,8 @@ jQuery(function($){
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['ar']);
|
||||
});
|
||||
datepicker.setDefaults(datepicker.regional['ar']);
|
||||
|
||||
return datepicker.regional['ar'];
|
||||
|
||||
}));
|
38
demos/datepicker/datepicker-fr.js
Normal file
@ -0,0 +1,38 @@
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au),
|
||||
Stéphane Nahmani (sholby@sholby.net),
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */
|
||||
(function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define([ "../jquery.ui.datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}(function( datepicker ) {
|
||||
datepicker.regional['fr'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
|
||||
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
|
||||
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
|
||||
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
|
||||
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||||
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||||
dayNamesMin: ['D','L','M','M','J','V','S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
datepicker.setDefaults(datepicker.regional['fr']);
|
||||
|
||||
return datepicker.regional['fr'];
|
||||
|
||||
}));
|
@ -1,7 +1,17 @@
|
||||
/* Hebrew initialisation for the UI Datepicker extension. */
|
||||
/* Written by Amir Hardon (ahardon at gmail dot com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['he'] = {
|
||||
(function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define([ "../jquery.ui.datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}(function( datepicker ) {
|
||||
datepicker.regional['he'] = {
|
||||
closeText: 'סגור',
|
||||
prevText: '<הקודם',
|
||||
nextText: 'הבא>',
|
||||
@ -19,5 +29,8 @@ jQuery(function($){
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['he']);
|
||||
});
|
||||
datepicker.setDefaults(datepicker.regional['he']);
|
||||
|
||||
return datepicker.regional['he'];
|
||||
|
||||
}));
|
@ -1,7 +1,17 @@
|
||||
/* Chinese initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Ressol (ressol@gmail.com). */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['zh-TW'] = {
|
||||
(function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define([ "../jquery.ui.datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}(function( datepicker ) {
|
||||
datepicker.regional['zh-TW'] = {
|
||||
closeText: '關閉',
|
||||
prevText: '<上月',
|
||||
nextText: '下月>',
|
||||
@ -19,5 +29,8 @@ jQuery(function($){
|
||||
isRTL: false,
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '年'};
|
||||
$.datepicker.setDefaults($.datepicker.regional['zh-TW']);
|
||||
});
|
||||
datepicker.setDefaults(datepicker.regional['zh-TW']);
|
||||
|
||||
return datepicker.regional['zh-TW'];
|
||||
|
||||
}));
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display month & year menus</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Icon trigger</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 258 B |
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display inline</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
25
demos/datepicker/jquery.ui.datepicker-fr.js
vendored
@ -1,25 +0,0 @@
|
||||
/* French initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Keith Wood (kbwood{at}iinet.com.au),
|
||||
Stéphane Nahmani (sholby@sholby.net),
|
||||
Stéphane Raimbault <stephane.raimbault@gmail.com> */
|
||||
jQuery(function($){
|
||||
$.datepicker.regional['fr'] = {
|
||||
closeText: 'Fermer',
|
||||
prevText: 'Précédent',
|
||||
nextText: 'Suivant',
|
||||
currentText: 'Aujourd\'hui',
|
||||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
|
||||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
|
||||
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',
|
||||
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
|
||||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
|
||||
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
|
||||
dayNamesMin: ['D','L','M','M','J','V','S'],
|
||||
weekHeader: 'Sem.',
|
||||
dateFormat: 'dd/mm/yy',
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: ''};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fr']);
|
||||
});
|
@ -3,19 +3,18 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Localize calendar</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<script src="jquery.ui.datepicker-ar.js"></script>
|
||||
<script src="jquery.ui.datepicker-fr.js"></script>
|
||||
<script src="jquery.ui.datepicker-he.js"></script>
|
||||
<script src="jquery.ui.datepicker-zh-TW.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<script src="datepicker-ar.js"></script>
|
||||
<script src="datepicker-fr.js"></script>
|
||||
<script src="datepicker-he.js"></script>
|
||||
<script src="datepicker-zh-TW.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
$.datepicker.setDefaults( $.datepicker.regional[ "" ] );
|
||||
$( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
|
||||
$( "#locale" ).change(function() {
|
||||
$( "#datepicker" ).datepicker( "option",
|
||||
@ -28,8 +27,9 @@
|
||||
|
||||
<p>Date: <input type="text" id="datepicker"/>
|
||||
<select id="locale">
|
||||
<option value="ar">Arabic (‫(لعربي</option>
|
||||
<option value="ar">Arabic (‫(العربية</option>
|
||||
<option value="zh-TW">Chinese Traditional (繁體中文)</option>
|
||||
<option value="">English</option>
|
||||
<option value="fr" selected="selected">French (Français)</option>
|
||||
<option value="he">Hebrew (‫(עברית</option>
|
||||
</select></p>
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Restrict date range</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Display multiple months</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Dates in other months</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,11 +3,11 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Datepicker - Show week of the year</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/datepicker.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,19 +3,19 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Animation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-blind.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-explode.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<script src="../../ui/effect-blind.js"></script>
|
||||
<script src="../../ui/effect-explode.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,16 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,16 +3,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal confirmation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,18 +3,18 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal form</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
body { font-size: 62.5%; }
|
||||
|
@ -3,17 +3,17 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Modal message</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,16 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Dialog - Basic modal</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/button.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Constrain movement</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.draggable { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Cursor style</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable { width: 150px; height: 150px; padding: 0.5em; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Delay start</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2 { width: 120px; height: 120px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Events</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable { width: 16em; padding: 0 1em; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Handles</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
|
||||
<title>jQuery UI Draggable - Draggable Map</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.8.2.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
html, body, .demo { height: 90%; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Revert position</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Auto-scroll</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2, #draggable3 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Snap to element or grid</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.draggable { width: 90px; height: 80px; padding: 5px; float: left; margin: 0 10px 10px 0; font-size: .9em; }
|
||||
@ -20,7 +20,7 @@
|
||||
$( "#draggable" ).draggable({ snap: true });
|
||||
$( "#draggable2" ).draggable({ snap: ".ui-widget-header" });
|
||||
$( "#draggable3" ).draggable({ snap: ".ui-widget-header", snapMode: "outer" });
|
||||
$( "#draggable4" ).draggable({ grid: [ 20,20 ] });
|
||||
$( "#draggable4" ).draggable({ grid: [ 20, 20 ] });
|
||||
$( "#draggable5" ).draggable({ grid: [ 80, 80 ] });
|
||||
});
|
||||
</script>
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable + Sortable</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.sortable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Draggable - Visual feedback</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.ui-draggable { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Accept</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Default functionality</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.interaction.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/interaction.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
|
||||
|
@ -3,16 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Simple photo manager</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<script src="../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../ui/jquery.ui.dialog.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<script src="../../ui/resizable.js"></script>
|
||||
<script src="../../ui/dialog.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#gallery { float: left; width: 65%; min-height: 12em; }
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Prevent propagation</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable { width: 100px; height: 40px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Revert draggable position</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
|
||||
@ -21,8 +21,8 @@
|
||||
$( "#draggable2" ).draggable({ revert: "invalid" });
|
||||
|
||||
$( "#droppable" ).droppable({
|
||||
activeClass: "ui-state-hover",
|
||||
hoverClass: "ui-state-active",
|
||||
activeClass: "ui-state-default",
|
||||
hoverClass: "ui-state-hover",
|
||||
drop: function( event, ui ) {
|
||||
$( this )
|
||||
.addClass( "ui-state-highlight" )
|
||||
|
@ -3,15 +3,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Shopping Cart Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<script src="../../ui/jquery.ui.sortable.js"></script>
|
||||
<script src="../../ui/jquery.ui.accordion.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<script src="../../ui/sortable.js"></script>
|
||||
<script src="../../ui/accordion.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
h1 { padding: .2em; margin: 0; }
|
||||
|
@ -3,13 +3,13 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Droppable - Visual feedback</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.core.js"></script>
|
||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||
<script src="../../ui/jquery.ui.mouse.js"></script>
|
||||
<script src="../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../ui/jquery.ui.droppable.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/mouse.js"></script>
|
||||
<script src="../../ui/draggable.js"></script>
|
||||
<script src="../../ui/droppable.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
#draggable, #draggable2 { width: 90px; height: 90px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
|
||||
@ -20,7 +20,7 @@
|
||||
$(function() {
|
||||
$( "#draggable" ).draggable();
|
||||
$( "#droppable" ).droppable({
|
||||
hoverClass: "ui-state-active",
|
||||
hoverClass: "ui-state-hover",
|
||||
drop: function( event, ui ) {
|
||||
$( this )
|
||||
.addClass( "ui-state-highlight" )
|
||||
@ -32,7 +32,7 @@
|
||||
$( "#draggable2" ).draggable();
|
||||
$( "#droppable2" ).droppable({
|
||||
accept: "#draggable2",
|
||||
activeClass: "ui-state-hover",
|
||||
activeClass: "ui-state-default",
|
||||
drop: function( event, ui ) {
|
||||
$( this )
|
||||
.addClass( "ui-state-highlight" )
|
||||
|
@ -3,9 +3,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - addClass demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; position: relative; }
|
@ -3,9 +3,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Animate demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; position: relative; }
|
@ -3,22 +3,24 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Effect demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-blind.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-bounce.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-clip.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-drop.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-explode.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-fade.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-fold.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-highlight.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-pulsate.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-scale.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-shake.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-slide.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-transfer.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<script src="../../ui/effect-blind.js"></script>
|
||||
<script src="../../ui/effect-bounce.js"></script>
|
||||
<script src="../../ui/effect-clip.js"></script>
|
||||
<script src="../../ui/effect-drop.js"></script>
|
||||
<script src="../../ui/effect-explode.js"></script>
|
||||
<script src="../../ui/effect-fade.js"></script>
|
||||
<script src="../../ui/effect-fold.js"></script>
|
||||
<script src="../../ui/effect-highlight.js"></script>
|
||||
<script src="../../ui/effect-puff.js"></script>
|
||||
<script src="../../ui/effect-pulsate.js"></script>
|
||||
<script src="../../ui/effect-scale.js"></script>
|
||||
<script src="../../ui/effect-shake.js"></script>
|
||||
<script src="../../ui/effect-size.js"></script>
|
||||
<script src="../../ui/effect-slide.js"></script>
|
||||
<script src="../../ui/effect-transfer.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; position: relative; }
|
||||
|
@ -3,9 +3,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Easing demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.graph {
|
||||
|
@ -3,20 +3,20 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Hide Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-blind.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-bounce.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-clip.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-drop.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-explode.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-fold.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-highlight.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-pulsate.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-scale.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-shake.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-slide.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<script src="../../ui/effect-blind.js"></script>
|
||||
<script src="../../ui/effect-bounce.js"></script>
|
||||
<script src="../../ui/effect-clip.js"></script>
|
||||
<script src="../../ui/effect-drop.js"></script>
|
||||
<script src="../../ui/effect-explode.js"></script>
|
||||
<script src="../../ui/effect-fold.js"></script>
|
||||
<script src="../../ui/effect-highlight.js"></script>
|
||||
<script src="../../ui/effect-pulsate.js"></script>
|
||||
<script src="../../ui/effect-scale.js"></script>
|
||||
<script src="../../ui/effect-shake.js"></script>
|
||||
<script src="../../ui/effect-slide.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; }
|
@ -9,6 +9,14 @@
|
||||
<ul>
|
||||
<li><a href="default.html">Effect showcase</a></li>
|
||||
<li><a href="easing.html">Easing showcase</a></li>
|
||||
<li><a href="addClass.html">.addClass()</a></li>
|
||||
<li><a href="animate.html">.animate()</a></li>
|
||||
<li><a href="hide.html">.hide()</a></li>
|
||||
<li><a href="removeClass.html">.removeClass()</a></li>
|
||||
<li><a href="show.html">.show()</a></li>
|
||||
<li><a href="switchClass.html">.switchClass()</a></li>
|
||||
<li><a href="toggle.html">.toggle()</a></li>
|
||||
<li><a href="toggleClass.html">.toggleClass()</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
|
@ -3,9 +3,9 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - removeClass Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; position: relative; }
|
@ -3,20 +3,20 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Effects - Show Demo</title>
|
||||
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||
<script src="../../jquery-1.9.1.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-blind.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-bounce.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-clip.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-drop.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-explode.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-fold.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-highlight.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-pulsate.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-scale.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-shake.js"></script>
|
||||
<script src="../../ui/jquery.ui.effect-slide.js"></script>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../jquery-1.10.2.js"></script>
|
||||
<script src="../../ui/effect.js"></script>
|
||||
<script src="../../ui/effect-blind.js"></script>
|
||||
<script src="../../ui/effect-bounce.js"></script>
|
||||
<script src="../../ui/effect-clip.js"></script>
|
||||
<script src="../../ui/effect-drop.js"></script>
|
||||
<script src="../../ui/effect-explode.js"></script>
|
||||
<script src="../../ui/effect-fold.js"></script>
|
||||
<script src="../../ui/effect-highlight.js"></script>
|
||||
<script src="../../ui/effect-pulsate.js"></script>
|
||||
<script src="../../ui/effect-scale.js"></script>
|
||||
<script src="../../ui/effect-shake.js"></script>
|
||||
<script src="../../ui/effect-slide.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<style>
|
||||
.toggler { width: 500px; height: 200px; }
|