Skip to content

Commit c59fbba

Browse files
committed
Merge branch 'master' into selectmenu
2 parents fc729a8 + 94221c4 commit c59fbba

25 files changed

+199
-70
lines changed

AUTHORS.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ A list of current team members is available at http://jqueryui.com/about
44
Paul Bakaus <paul.bakaus@googlemail.com>
55
Richard Worth <rdworth@gmail.com>
66
Yehuda Katz <wycats@gmail.com>
7-
Sean Catchpole <littlecooldude@gmail.com>
7+
Sean Catchpole <sean@sunsean.com>
88
John Resig <jeresig@gmail.com>
9-
Tane Piper <tane@tanepiper.com>
9+
Tane Piper <piper.tane@gmail.com>
1010
Dmitri Gaskin <dmitrig01@gmail.com>
1111
Klaus Hartl <klaus.hartl@googlemail.com>
1212
Stefan Petre <stefan.petre@gmail.com>
1313
Gilles van den Hoven <gilles@webunity.nl>
14-
Micheil Smith <micheil@brandedcode.com>
14+
Micheil Bryan Smith <micheil@brandedcode.com>
1515
Jörn Zaefferer <joern.zaefferer@gmail.com>
1616
Marc Grabanski <m@marcgrabanski.com>
1717
Keith Wood <kbwood.au@gmail.com>
@@ -81,9 +81,9 @@ Khaled AlHourani <me@khaledalhourani.com>
8181
Marian Rudzynski <mr@impaled.org>
8282
Jean-Francois Remy <jfremy@virtuoz.com>
8383
Doug Blood <dougblood@gmail.com>
84-
Filippo Cavallarin <poplix@papuasia.org>
84+
Filippo Cavallarin <filippo.cavallarin@codseq.it>
8585
Heiko Henning <h.henning@educa.ch>
86-
Aliaxandr Rahalevich <saksmlz@gmail.com>
86+
Aliaksandr Rahalevich <saksmlz@gmail.com>
8787
Mario Visic <mario@mariovisic.com>
8888
Xavi Ramirez <xavi.rmz@gmail.com>
8989
Max Schnur <max.schnur@gmail.com>
@@ -92,7 +92,7 @@ Corey Frang <gnarf@gnarf.net>
9292
Aaron Peterson <aaronp123@yahoo.com>
9393
Ivan Peters <ivan@ivanpeters.com>
9494
Mohamed Cherif Bouchelaghem <cherifbouchelaghem@yahoo.fr>
95-
Marcos Sousa <marcos.sousa@corp.globo.com>
95+
Marcos Sousa <falecomigo@marcossousa.com>
9696
Michael DellaNoce <mdellanoce@mailtrust.com>
9797
George Marshall <echosx@gmail.com>
9898
Tobias Brunner <tobias@strongswan.org>
@@ -114,8 +114,8 @@ Hans Hillen <hans.hillen@gmail.com>
114114
Mark Johnson <virgofx@live.com>
115115
Trey Hunner <treyhunner@gmail.com>
116116
Shane Whittet <whittet@gmail.com>
117-
Edward Faulkner <ef@alum.mit.edu>
118-
Adam Baratz <adam.baratz@gmail.com>
117+
Edward A Faulkner <ef@alum.mit.edu>
118+
Adam Baratz <adam@adambaratz.com>
119119
Kato Kazuyoshi <kato.kazuyoshi@gmail.com>
120120
Eike Send <eike.send@gmail.com>
121121
Kris Borchers <kris.borchers@gmail.com>
@@ -125,27 +125,27 @@ Carson McDonald <carson@ioncannon.net>
125125
Jason Davies <jason@jasondavies.com>
126126
Garrison Locke <gplocke@gmail.com>
127127
David Murdoch <musicisair@yahoo.com>
128-
Ben Boyle <benjamins.boyle@gmail.com>
128+
Benjamin Scott Boyle <benjamins.boyle@gmail.com>
129129
Jesse Baird <jebaird@gmail.com>
130130
Jonathan Vingiano <jvingiano@gmail.com>
131131
Dylan Just <dev@ephox.com>
132-
Tomy Kaira <tomykaira@gmail.com>
132+
Hiroshi Tomita <tomykaira@gmail.com>
133133
Glenn Goodrich <glenn.goodrich@gmail.com>
134-
Ashek Elahi <mail.ashek@gmail.com>
134+
Tarafder Ashek-E-Elahi <mail.ashek@gmail.com>
135135
Ryan Neufeld <ryan@neufeldmail.com>
136136
Marc Neuwirth <marc.neuwirth@gmail.com>
137137
Philip Graham <philip.robert.graham@gmail.com>
138138
Benjamin Sterling <benjamin.sterling@kenzomedia.com>
139-
Wesley Walser <wwalser@atlassian.com>
139+
Wesley Walser <waw325@gmail.com>
140140
Kouhei Sutou <kou@clear-code.com>
141-
Karl Kirch <karl.ctr.kirch@faa.gov>
141+
Karl Kirch <karlkrch@gmail.com>
142142
Chris Kelly <ckdake@ckdake.com>
143143
Jay Oster <jay@loyalize.com>
144-
Alex Polomoshnov <alex.polomoshnov@gmail.com>
144+
Alexander Polomoshnov <alex.polomoshnov@gmail.com>
145145
David Leal <dgleal@gmail.com>
146-
igor milla <igor.fsp.milla@gmail.com>
146+
Igor Milla <igor.fsp.milla@gmail.com>
147147
Dave Methvin <dave.methvin@gmail.com>
148-
Florian Gutmann <blackfeet@gmx.at>
148+
Florian Gutmann <f.gutmann@chronimo.com>
149149
Marwan Al Jubeh <marwan.aljubeh@gmail.com>
150150
Milan Broum <midlis@googlemail.com>
151151
Sebastian Sauer <info@dynpages.de>
@@ -157,7 +157,7 @@ David Soms <david.soms@gmail.com>
157157
David De Sloovere <david.desloovere@hotmail.com>
158158
Michael P. Jung <michael.jung@terreon.de>
159159
Shannon Pekary <spekary@gmail.com>
160-
Matthew Hutton <meh@corefiling.co.uk>
160+
Matthew Edward Hutton <meh@corefiling.co.uk>
161161
James Khoury <james@jameskhoury.com>
162162
Rob Loach <robloach@gmail.com>
163163
Alberto Monteiro <betimbrasil@gmail.com>
@@ -168,7 +168,7 @@ Genie <386@mail.com>
168168
Rick Waldron <waldron.rick@gmail.com>
169169
Ian Simpson <spoonlikesham@gmail.com>
170170
Lev Kitsis <spam4lev@gmail.com>
171-
TJ VanToll <tj.vantoll@gmail.com>
171+
Ted VanToll <tj.vantoll@gmail.com>
172172
Justin Domnitz <jdomnitz@gmail.com>
173173
Douglas Cerna <douglascerna@yahoo.com>
174174
Bert ter Heide <bertjh@hotmail.com>
@@ -189,11 +189,11 @@ Eneko Illarramendi <eneko@illarra.com>
189189
EungJun Yi <semtlenori@gmail.com>
190190
Courtland Allen <courtlandallen@gmail.com>
191191
Viktar Varvanovich <non4eg@gmail.com>
192-
Danny Trunk <dtrunk90@googlemail.com>
192+
Danny Trunk <dtrunk90@gmail.com>
193193
Pavel Stetina <pavel.stetina@nangu.tv>
194-
Mike Stay <metaweta@gmail.com>
194+
Michael Stay <metaweta@gmail.com>
195195
Steven Roussey <sroussey@gmail.com>
196-
Mike Hollis <hollis21@gmail.com>
196+
Michael Hollis <hollis21@gmail.com>
197197
Lee Rowlands <lee.rowlands@previousnext.com.au>
198198
Timmy Willison <timmywillisn@gmail.com>
199199
Karl Swedberg <kswedberg@gmail.com>

build/.jshintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"curly": true,
3+
"eqnull": true,
4+
"eqeqeq": true,
5+
"expr": true,
6+
"noarg": true,
7+
"node": true,
8+
"onevar": true,
9+
"smarttabs": true,
10+
"strict": false,
11+
"trailing": true,
12+
"undef": true
13+
}

build/release/release.js

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
/*global cat:true cd:true cp:true echo:true exec:true exit:true ls:true*/
23

34
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
45
fs = require( "fs" ),
@@ -40,6 +41,9 @@ walk([
4041
section( "gathering contributors" ),
4142
gatherContributors,
4243

44+
section( "generating quick download" ),
45+
generateQuickDownload,
46+
4347
section( "updating trac" ),
4448
updateTrac,
4549
confirm
@@ -250,13 +254,41 @@ function gatherContributors() {
250254
echo ( "Adding people thanked in commits..." );
251255
contributors = contributors.concat(
252256
gitLog( "%b%n%s" ).filter(function( line ) {
253-
return /thank/i.test( line );
257+
return (/thank/i).test( line );
254258
}));
255259

256260
fs.writeFileSync( contributorsPath, contributors.join( "\n" ) );
257261
echo( "Stored contributors in " + contributorsPath.cyan + "." );
258262
}
259263

264+
function generateQuickDownload() {
265+
var config,
266+
downloadDir = repoDir + "/node_modules/download.jqueryui.com",
267+
filename = "jquery-ui-" + newVersion + ".custom.zip",
268+
destination = baseDir + "/" + filename;
269+
270+
cd( downloadDir );
271+
272+
// Update jQuery UI version for download builder
273+
config = JSON.parse( cat( "config.json" ) );
274+
config.jqueryUi = newVersion;
275+
JSON.stringify( config ).to( "config.json" );
276+
277+
// Generate quick download
278+
// TODO: Find a way to avoid having to clone jquery-ui inside download builder
279+
if ( exec( "grunt prepare build" ).code !== 0 ) {
280+
abort( "Error generating quick download." );
281+
}
282+
cp( downloadDir + "/release/" + filename, destination );
283+
// cp() doesn't have error handling, so check for the file
284+
if ( ls( destination ).length !== 1 ) {
285+
abort( "Error copying quick download." );
286+
}
287+
288+
// Go back to repo directory for consistency
289+
cd( repoDir );
290+
}
291+
260292
function updateTrac() {
261293
echo( newVersion.cyan + " was tagged at " + tagTime.cyan + "." );
262294
echo( "Close the " + newVersion.cyan + " Milestone with the above date and time." );
@@ -347,8 +379,8 @@ function bootstrap( fn ) {
347379
return process.exit( 1 );
348380
}
349381

350-
require( baseDir + "/node_modules/shelljs/global" );
351-
require( baseDir + "/node_modules/colors" );
382+
require( "shelljs/global" );
383+
require( "colors" );
352384

353385
fn();
354386
});

build/tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ grunt.registerTask( "generate_themes", function() {
177177
distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() );
178178
try {
179179
require.resolve( "download.jqueryui.com" );
180-
} catch( e ) {
181-
throw "You need to manually install download.jqueryui.com for this task to work";
180+
} catch( error ) {
181+
throw new Error( "You need to manually install download.jqueryui.com for this task to work" );
182182
}
183183

184184
// copy release files into download builder to avoid cloning again

demos/datepicker/date-range.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
defaultDate: "+1w",
1616
changeMonth: true,
1717
numberOfMonths: 3,
18-
onSelect: function( selectedDate ) {
18+
onClose: function( selectedDate ) {
1919
$( "#to" ).datepicker( "option", "minDate", selectedDate );
2020
}
2121
});
2222
$( "#to" ).datepicker({
2323
defaultDate: "+1w",
2424
changeMonth: true,
2525
numberOfMonths: 3,
26-
onSelect: function( selectedDate ) {
26+
onClose: function( selectedDate ) {
2727
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
2828
}
2929
});

demos/position/cycler.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>jQuery UI Position - Default functionality</title>
5+
<title>jQuery UI Position - Image Cycler</title>
66
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
77
<script src="../../jquery-1.8.2.js"></script>
88
<script src="../../ui/jquery.ui.core.js"></script>

demos/spinner/currency.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>jQuery UI Spinner - Default functionality</title>
5+
<title>jQuery UI Spinner - Currency</title>
66
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
77
<script src="../../jquery-1.8.2.js"></script>
88
<script src="../../external/jquery.mousewheel.js"></script>

demos/tooltip/custom-style.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>jQuery UI Tooltip - Default functionality</title>
5+
<title>jQuery UI Tooltip - Custom Styling</title>
66
<link rel="stylesheet" href="../../themes/base/jquery.ui.tooltip.css">
77
<script src="../../jquery-1.8.2.js"></script>
88
<script src="../../ui/jquery.ui.core.js"></script>
@@ -85,7 +85,7 @@
8585
<a href="http://themeroller.com" title="ThemeRoller: jQuery UI's theme builder application">ThemeRoller</a>
8686
will also style tooltips accordingly.</p>
8787
<p>Tooltips are also useful for form elements, to show some additional information in the context of each field.</p>
88-
<p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes."></p>
88+
<p><label for="age">Your age:</label> <input id="age" title="We ask for your age only for statistical purposes."></p>
8989
<p>Hover the field to see the tooltip.</p>
9090

9191
<div class="demo-description">

grunt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ grunt.initConfig({
287287
// TODO remove items from this list once rewritten
288288
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
289289
}),
290-
grunt: [ "grunt.js", "build/tasks/*.js" ],
290+
grunt: [ "grunt.js", "build/**/*.js" ],
291291
tests: "tests/unit/**/*.js"
292292
},
293293
csslint: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jquery-ui",
33
"title": "jQuery UI",
44
"description": "A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.",
5-
"version": "1.9.0pre",
5+
"version": "1.9.1pre",
66
"homepage": "http://jqueryui.com",
77
"author": {
88
"name": "jQuery Foundation and other contributors",

tests/jquery.simulate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $.extend( $.simulate.prototype, {
148148
}
149149

150150
// TODO: can we hook into core's logic?
151-
if ( $.browser.msie || $.browser.opera ) {
151+
if ( $.ui.ie || (({}).toString.call( window.opera ) === "[object Opera]") ) {
152152
// TODO: is charCode ever <0 ? Can we just use charCode || keyCode?
153153
event.keyCode = (options.charCode > 0) ? options.charCode : options.keyCode;
154154
event.charCode = undefined;

tests/unit/datepicker/datepicker_core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test('baseStructure', function() {
5959
var header, title, table, thead, week, panel, inl, child,
6060
inp = init('#inp').focus(),
6161
dp = $('#ui-datepicker-div'),
62-
iframe = ($.browser.msie && parseInt($.browser.version, 10) < 7);
62+
iframe = ($.ui.ie6);
6363
ok(dp.is(':visible'), 'Structure - datepicker visible');
6464
ok(!dp.is('.ui-datepicker-rtl'), 'Structure - not right-to-left');
6565
ok(!dp.is('.ui-datepicker-multi'), 'Structure - not multi-month');
@@ -186,7 +186,7 @@ test('customStructure', function() {
186186
inp = init('#inp', $.datepicker.regional.he);
187187
inp.data('showButtonPanel.datepicker',true);
188188
inp.focus();
189-
iframe = ($.browser.msie && parseInt($.browser.version, 10) < 7);
189+
iframe = ($.ui.ie6);
190190
ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left');
191191
header = dp.children(':first');
192192
ok(header.is('div.ui-datepicker-header'), 'Structure RTL - header division');

tests/unit/tabs/tabs_options.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var disabled = TestHelpers.tabs.disabled,
77
module( "tabs: options" );
88

99
test( "{ active: default }", function() {
10-
expect( 4 );
10+
expect( 6 );
1111

1212
var element = $( "#tabs1" ).tabs();
1313
equal( element.tabs( "option", "active" ), 0, "should be 0 by default" );
@@ -19,6 +19,12 @@ test( "{ active: default }", function() {
1919
equal( element.tabs( "option", "active" ), 2, "should be 2 based on URL" );
2020
state( element, 0, 0, 1 );
2121
element.tabs( "destroy" );
22+
23+
location.hash = "#custom-id";
24+
element = $( "#tabs2" ).tabs();
25+
equal( element.tabs( "option", "active" ), 3, "should be 3 based on URL" );
26+
state( element, 0, 0, 0, 1, 0 );
27+
element.tabs( "destroy" );
2228
location.hash = "#";
2329
});
2430

tests/unit/tooltip/tooltip_methods.js

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
module( "tooltip: methods" );
44

55
test( "destroy", function() {
6-
expect( 2 );
6+
expect( 3 );
7+
var element = $( "#tooltipped1" );
8+
79
domEqual( "#tooltipped1", function() {
8-
$( "#tooltipped1" ).tooltip().tooltip( "destroy" );
10+
element.tooltip().tooltip( "destroy" );
911
});
1012

1113
// make sure that open tooltips are removed on destroy
12-
$( "#tooltipped1" ).tooltip().tooltip( "open" ).tooltip( "destroy" );
14+
domEqual( "#tooltipped1", function() {
15+
element
16+
.tooltip()
17+
.tooltip( "open", $.Event( "mouseover", { target: element[0] }) )
18+
.tooltip( "destroy" );
19+
});
1320
equal( $( ".ui-tooltip" ).length, 0 );
1421
});
1522

@@ -29,6 +36,23 @@ test( "open/close", function() {
2936
$.fx.off = false;
3037
});
3138

39+
// #8626 - Calling open() without an event
40+
test( "open/close with tracking", function() {
41+
expect( 3 );
42+
$.fx.off = true;
43+
var tooltip,
44+
element = $( "#tooltipped1" ).tooltip({ track: true });
45+
equal( $( ".ui-tooltip" ).length, 0, "no tooltip on init" );
46+
47+
element.tooltip( "open" );
48+
tooltip = $( "#" + element.data( "ui-tooltip-id" ) );
49+
ok( tooltip.is( ":visible" ) );
50+
51+
element.tooltip( "close" );
52+
ok( tooltip.is( ":hidden" ) );
53+
$.fx.off = false;
54+
});
55+
3256
test( "enable/disable", function() {
3357
expect( 7 );
3458
$.fx.off = true;

themes/base/jquery.ui.autocomplete.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
*
99
* http://docs.jquery.com/UI/Autocomplete#theming
1010
*/
11-
.ui-autocomplete { position: absolute; cursor: default; }
11+
.ui-autocomplete {
12+
position: absolute;
13+
top: 0; /* #8656 */
14+
cursor: default;
15+
}
1216

1317
/* workarounds */
1418
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */

0 commit comments

Comments
 (0)