Skip to content

Commit 6b8ac7e

Browse files
committed
Merge branch 'master' into datepicker
2 parents 68028e7 + d85c68f commit 6b8ac7e

File tree

210 files changed

+154018
-7664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+154018
-7664
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
2+
bower_components
23
node_modules
3-
.sizecache.json
4+
.sizecache.json

.jscsrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@
88
"es3": true,
99

1010
// We want to output all errors
11-
"maxErrors": 1000000,
12-
13-
// Ref https://github.com/jquery/contribute.jquery.org/issues/80#issuecomment-45253460
14-
"maximumLineLength": null
11+
"maxErrors": 1000000
1512
}

.mailmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Christoph Rönsch <christoph.roensch@arcor.de>
1717
Corey Frang <gnarf37@gmail.com> <gnarf@gnarf.net>
1818
Courtland Allen <courtlandallen@gmail.com>
1919
Dan Streetman <ddstreet@ieee.org>
20-
Dan Strohl <dstrohl@users.noreply.github.com>
20+
Dan Strohl <dan@wjcg.net> <dstrohl@users.noreply.github.com>
2121
Danny Trunk <dtrunk90@gmail.com> <dtrunk90@googlemail.com>
2222
David De Sloovere <david.desloovere@outlook.com> <david.desloovere@hotmail.com>
2323
David Murdoch <david@davidmurdoch.com> <musicisair@yahoo.com>

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ sudo: required
22
dist: trusty
33
language: node_js
44
node_js:
5-
- "0.12"
6-
before_script:
7-
- npm install -g grunt-cli
5+
- "6"

AUTHORS.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,13 @@ Piotr Baran <piotros@wp.pl>
321321
Mukul Hase <mukulhase@gmail.com>
322322
Konstantin Dinev <kdinev@mail.bw.edu>
323323
Rand Scullard <rand@randscullard.com>
324-
Dan Strohl
324+
Dan Strohl <dan@wjcg.net>
325+
Maksim Ryzhikov <rv.maksim@gmail.com>
326+
Amine HADDAD <haddad@allegorie.tv>
327+
Amanpreet Singh <apsdehal@gmail.com>
328+
Alexey Balchunas <bleshik@gmail.com>
329+
Peter Kehl <peter.kehl@gmail.com>
330+
Peter Dave Hello <hsu@peterdavehello.org>
331+
Johannes Schäfer <johnschaefer@gmx.de>
332+
Ville Skyttä <ville.skytta@iki.fi>
333+
Ryan Oriecuia <ryan.oriecuia@visioncritical.com>

CONTRIBUTING.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ git clone git://github.com/jquery/jquery-ui.git
2727
cd jquery-ui
2828
```
2929

30-
The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `grunt` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the grunt command works.
30+
The tests can run in any local web server. Ideally you should test your patch in appropriate web browsers and if possible run `npm test` to lint the code and run automated tests (this will happen automatically when you create a pull request). See the [Recommended Setup](#environment-recommended-setup) for setting up Node.js so that the `npm test` command works.
3131

3232
### Environment: Getting the Source
3333

@@ -61,15 +61,9 @@ git pull upstream master
6161

6262
### Environment: Recommended Setup
6363

64-
jQuery UI uses Node.js & Grunt to automate the building and validation of source code. Here is how to set that up:
64+
jQuery UI uses Node.js to automate the building and validation of source code. Here is how to set that up:
6565

6666
* Get [Node.js](http://nodejs.org/) (includes NPM, necessary for the next step)
67-
* Install Grunt cli:
68-
69-
```bash
70-
npm install -g grunt-cli
71-
```
72-
7367
* Install local Node.js modules
7468

7569
```bash
@@ -87,10 +81,10 @@ The tests require a local web server and the samples contain some PHP, so a PHP
8781

8882
### Running the Tests
8983

90-
To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run grunt:
84+
To lint the JavaScript, HTML, and CSS, as well as run a smoke test in PhantomJS, run the full test suite through npm:
9185

9286
```bash
93-
grunt
87+
npm test
9488
```
9589

9690
To run the tests for a specific plugin in your browser, open the appropriate file from the `/tests/unit/` directory, for example: `http://localhost/tests/unit/accordion/accordion.html`. The domain will be dependent on your local server configuration; if there is a port, be sure to include it.

Gruntfile.js

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ var
77
coreFiles = [
88
"core.js",
99
"widget.js",
10-
"mouse.js",
11-
"draggable.js",
12-
"droppable.js",
13-
"resizable.js",
14-
"selectable.js",
15-
"sortable.js",
10+
"widgets/mouse.js",
11+
"widgets/draggable.js",
12+
"widgets/droppable.js",
13+
"widgets/resizable.js",
14+
"widgets/selectable.js",
15+
"widgets/sortable.js",
1616
"effect.js"
1717
],
1818

1919
uiFiles = coreFiles.map(function( file ) {
2020
return "ui/" + file;
21-
}).concat( expandFiles( "ui/*.js" ).filter(function( file ) {
21+
}).concat( expandFiles( "ui/**/*.js" ).filter(function( file ) {
2222
return coreFiles.indexOf( file.substring( 3 ) ) === -1;
2323
}) ),
2424

@@ -178,12 +178,21 @@ grunt.initConfig({
178178
},
179179

180180
jscs: {
181-
all: {
181+
ui: {
182182
options: {
183183
config: true
184184
},
185185
files: {
186-
src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]
186+
src: [ "demos/**/*.js", "build/**/*.js", "ui/**/*.js" ]
187+
}
188+
},
189+
tests: {
190+
options: {
191+
config: true,
192+
maximumLineLength: null
193+
},
194+
files: {
195+
src: [ "tests/**/*.js" ]
187196
}
188197
}
189198
},
@@ -287,7 +296,7 @@ grunt.initConfig({
287296
"jshint/LICENSE": "jshint/LICENSE",
288297

289298
"jquery/jquery.js": "jquery-1.x/dist/jquery.js",
290-
"jquery/MIT-LICENSE.txt": "jquery-1.x/MIT-LICENSE.txt",
299+
"jquery/LICENSE.txt": "jquery-1.x/LICENSE.txt",
291300

292301
"jquery-1.7.0/jquery.js": "jquery-1.7.0/jquery.js",
293302
"jquery-1.7.0/MIT-LICENSE.txt": "jquery-1.7.0/MIT-LICENSE.txt",
@@ -337,6 +346,21 @@ grunt.initConfig({
337346
"jquery-1.11.3/jquery.js": "jquery-1.11.3/dist/jquery.js",
338347
"jquery-1.11.3/MIT-LICENSE.txt": "jquery-1.11.3/MIT-LICENSE.txt",
339348

349+
"jquery-1.12.0/jquery.js": "jquery-1.12.0/dist/jquery.js",
350+
"jquery-1.12.0/LICENSE.txt": "jquery-1.12.0/LICENSE.txt",
351+
352+
"jquery-1.12.1/jquery.js": "jquery-1.12.1/dist/jquery.js",
353+
"jquery-1.12.1/LICENSE.txt": "jquery-1.12.1/LICENSE.txt",
354+
355+
"jquery-1.12.2/jquery.js": "jquery-1.12.2/dist/jquery.js",
356+
"jquery-1.12.2/LICENSE.txt": "jquery-1.12.2/LICENSE.txt",
357+
358+
"jquery-1.12.3/jquery.js": "jquery-1.12.3/dist/jquery.js",
359+
"jquery-1.12.3/LICENSE.txt": "jquery-1.12.3/LICENSE.txt",
360+
361+
"jquery-1.12.4/jquery.js": "jquery-1.12.4/dist/jquery.js",
362+
"jquery-1.12.4/LICENSE.txt": "jquery-1.12.4/LICENSE.txt",
363+
340364
"jquery-2.0.0/jquery.js": "jquery-2.0.0/jquery.js",
341365
"jquery-2.0.0/MIT-LICENSE.txt": "jquery-2.0.0/MIT-LICENSE.txt",
342366

@@ -359,7 +383,34 @@ grunt.initConfig({
359383
"jquery-2.1.2/MIT-LICENSE.txt": "jquery-2.1.2/MIT-LICENSE.txt",
360384

361385
"jquery-2.1.3/jquery.js": "jquery-2.1.3/dist/jquery.js",
362-
"jquery-2.1.3/MIT-LICENSE.txt": "jquery-2.1.3/MIT-LICENSE.txt"
386+
"jquery-2.1.3/MIT-LICENSE.txt": "jquery-2.1.3/MIT-LICENSE.txt",
387+
388+
"jquery-2.1.4/jquery.js": "jquery-2.1.4/dist/jquery.js",
389+
"jquery-2.1.4/MIT-LICENSE.txt": "jquery-2.1.4/MIT-LICENSE.txt",
390+
391+
"jquery-2.2.0/jquery.js": "jquery-2.2.0/dist/jquery.js",
392+
"jquery-2.2.0/LICENSE.txt": "jquery-2.2.0/LICENSE.txt",
393+
394+
"jquery-2.2.1/jquery.js": "jquery-2.2.1/dist/jquery.js",
395+
"jquery-2.2.1/LICENSE.txt": "jquery-2.2.1/LICENSE.txt",
396+
397+
"jquery-2.2.2/jquery.js": "jquery-2.2.2/dist/jquery.js",
398+
"jquery-2.2.2/LICENSE.txt": "jquery-2.2.2/LICENSE.txt",
399+
400+
"jquery-2.2.3/jquery.js": "jquery-2.2.3/dist/jquery.js",
401+
"jquery-2.2.3/LICENSE.txt": "jquery-2.2.3/LICENSE.txt",
402+
403+
"jquery-2.2.4/jquery.js": "jquery-2.2.4/dist/jquery.js",
404+
"jquery-2.2.4/LICENSE.txt": "jquery-2.2.4/LICENSE.txt",
405+
406+
"jquery-3.0.0/jquery.js": "jquery-3.0.0/dist/jquery.js",
407+
"jquery-3.0.0/LICENSE.txt": "jquery-3.0.0/LICENSE.txt",
408+
409+
"jquery-3.1.0/jquery.js": "jquery-3.1.0/dist/jquery.js",
410+
"jquery-3.1.0/LICENSE.txt": "jquery-3.1.0/LICENSE.txt",
411+
412+
"jquery-3.1.1/jquery.js": "jquery-3.1.1/dist/jquery.js",
413+
"jquery-3.1.1/LICENSE.txt": "jquery-3.1.1/LICENSE.txt"
363414
}
364415
}
365416
},
@@ -405,9 +456,7 @@ grunt.registerTask( "update-authors", function() {
405456
}
406457

407458
authors = authors.map(function( author ) {
408-
if ( author.match( /^Dan Strohl </ ) ) {
409-
return "Dan Strohl";
410-
} else if ( author.match( /^Jacek Jędrzejewski </ ) ) {
459+
if ( author.match( /^Jacek Jędrzejewski </ ) ) {
411460
return "Jacek Jędrzejewski (http://jacek.jedrzejewski.name)";
412461
} else if ( author.match( /^Pawel Maruszczyk </ ) ) {
413462
return "Pawel Maruszczyk (http://hrabstwo.net)";

bower.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"external",
88
"tests"
99
],
10+
"license": "MIT",
1011
"dependencies": {
1112
"jquery": ">=1.6"
1213
},
@@ -37,14 +38,28 @@
3738
"jquery-1.11.1": "jquery#1.11.1",
3839
"jquery-1.11.2": "jquery#1.11.2",
3940
"jquery-1.11.3": "jquery#1.11.3",
40-
"jquery-1.x": "jquery#1.11.3",
41+
"jquery-1.12.0": "jquery#1.12.0",
42+
"jquery-1.12.1": "jquery#1.12.1",
43+
"jquery-1.12.2": "jquery#1.12.2",
44+
"jquery-1.12.3": "jquery#1.12.3",
45+
"jquery-1.12.4": "jquery#1.12.4",
46+
"jquery-1.x": "jquery#1.12.4",
4147
"jquery-2.0.0": "jquery#2.0.0",
4248
"jquery-2.0.1": "jquery#2.0.1",
4349
"jquery-2.0.2": "jquery#2.0.2",
4450
"jquery-2.0.3": "jquery#2.0.3",
4551
"jquery-2.1.0": "jquery#2.1.0",
4652
"jquery-2.1.1": "jquery#2.1.1",
4753
"jquery-2.1.2": "jquery#2.1.2",
48-
"jquery-2.1.3": "jquery#2.1.3"
54+
"jquery-2.1.3": "jquery#2.1.3",
55+
"jquery-2.1.4": "jquery#2.1.4",
56+
"jquery-2.2.0": "jquery#2.2.0",
57+
"jquery-2.2.1": "jquery#2.2.1",
58+
"jquery-2.2.2": "jquery#2.2.2",
59+
"jquery-2.2.3": "jquery#2.2.3",
60+
"jquery-2.2.4": "jquery#2.2.4",
61+
"jquery-3.0.0": "jquery#3.0.0",
62+
"jquery-3.1.0": "jquery#3.1.0",
63+
"jquery-3.1.1": "jquery#3.1.1"
4964
}
5065
}

build/release.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ function replaceAtVersion() {
3535
return matches;
3636
}
3737

38+
function removeExternals ( packager ) {
39+
Object.keys( packager.builtFiles ).forEach( function( filepath ) {
40+
if ( /^external\//.test( filepath ) ) {
41+
delete packager.builtFiles[ filepath ];
42+
}
43+
} );
44+
}
45+
3846
function addManifest( packager ) {
3947
var output = packager.builtFiles;
4048
output.MANIFEST = Object.keys( output ).sort( function( a, b ) {
@@ -52,7 +60,8 @@ function buildCDNPackage( callback ) {
5260
var Package = require( "download.jqueryui.com/lib/package-1-12-themes" );
5361
var Packager = require( "node-packager" );
5462
var jqueryUi = new JqueryUi( path.resolve( "." ) );
55-
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version + "-cdn.zip" );
63+
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version +
64+
"-cdn.zip" );
5665
var packager = new Packager( jqueryUi.files().cache, Package, {
5766
components: jqueryUi.components().map( function( component ) {
5867
return component.name;
@@ -61,6 +70,7 @@ function buildCDNPackage( callback ) {
6170
themeVars: null
6271
} );
6372
packager.ready.then( function() {
73+
removeExternals( packager );
6474
addManifest( packager );
6575
packager.toZip( target, {
6676
basedir: ""
@@ -82,7 +92,8 @@ Release.define( {
8292
"August", "September", "October", "November", "December" ],
8393
now = new Date();
8494
return "<script>{\n\t\"title\": \"jQuery UI " + Release.newVersion + " Changelog\"\n" +
85-
"}</script>\n\nReleased on " + monthNames[ now.getMonth() ] + " " + now.getDate() + ", " + now.getFullYear() + "\n\n";
95+
"}</script>\n\nReleased on " + monthNames[ now.getMonth() ] + " " + now.getDate() +
96+
", " + now.getFullYear() + "\n\n";
8697
},
8798
generateArtifacts: function( fn ) {
8899
var files = replaceAtVersion();

build/tasks/testswarm.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,32 @@ module.exports = function( grunt ) {
44

55
var versions = {
66
"git": "git",
7-
"1.11": "1.11.0 1.11.1 1.11.2 1.11.3",
8-
"1.10": "1.10.0 1.10.2",
9-
"1.9": "1.9.0 1.9.1",
10-
"1.8": "1.8.0 1.8.1 1.8.2 1.8.3",
11-
"1.7": "1.7.0 1.7.1 1.7.2"
7+
"3.1": "3.1.1",
8+
"3.0": "3.0.0",
9+
"2.2": "2.2.4",
10+
"2.1": "2.1.4",
11+
"2.0": "2.0.3",
12+
"1.12": "1.12.4",
13+
"1.11": "1.11.3",
14+
"1.10": "1.10.2",
15+
"1.9": "1.9.1",
16+
"1.8": "1.8.3",
17+
"1.7": "1.7.2"
1218
},
1319
tests = {
1420
"Accordion": "accordion/accordion.html",
1521
"Autocomplete": "autocomplete/autocomplete.html",
1622
"Button": "button/button.html",
1723
"Calendar": "calendar/calendar.html",
24+
"Checkboxradio": "checkboxradio/checkboxradio.html",
25+
"Controlgroup": "controlgroup/controlgroup.html",
1826
"Core": "core/core.html",
1927
"Datepicker": "datepicker/datepicker.html",
2028
"Dialog": "dialog/dialog.html",
2129
"Draggable": "draggable/draggable.html",
2230
"Droppable": "droppable/droppable.html",
2331
"Effects": "effects/effects.html",
32+
"Form Reset Mixin": "form-reset-mixin/form-reset-mixin.html",
2433
"Menu": "menu/menu.html",
2534
"Position": "position/position.html",
2635
"Progressbar": "progressbar/progressbar.html",
@@ -43,12 +52,6 @@ function submit( commit, runs, configFile, extra, done ) {
4352
commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit;
4453

4554
if ( extra ) {
46-
47-
// jquery-git doesn't support IE 8.
48-
if ( extra === "core git" ) {
49-
browserSets = "jquery-ui-future";
50-
}
51-
5255
extra = " (" + extra + ")";
5356
}
5457

-86 Bytes
Loading
-39 Bytes
Loading
-32 Bytes
Loading
-13 Bytes
Loading

demos/autocomplete/multiple-remote.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
return val.split( /,\s*/ );
1818
}
1919
function extractLast( term ) {
20-
return split( term ).pop();
20+
return split( term ).pop();
2121
}
2222

2323
$( "#birds" )

0 commit comments

Comments
 (0)