Skip to content

Commit ab2219b

Browse files
committed
Merge branch 'master' into selectmenu
2 parents a6c5f58 + 14782c0 commit ab2219b

34 files changed

+551
-757
lines changed

Gruntfile.js

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -173,34 +173,19 @@ grunt.initConfig({
173173
files: expandFiles( "tests/unit/**/*.html" ).filter(function( file ) {
174174
// disabling everything that doesn't (quite) work with PhantomJS for now
175175
// TODO except for all|index|test, try to include more as we go
176-
return !( /(all|index|test|dialog|tooltip)\.html$/ ).test( file );
176+
return !( /(all|index|test|dialog|tooltip|draggable)\.html$/ ).test( file );
177177
})
178178
},
179179
jshint: {
180-
ui: {
181-
options: {
182-
jshintrc: "ui/.jshintrc"
183-
},
184-
files: {
185-
src: "ui/*.js"
186-
}
187-
},
188-
grunt: {
189-
options: {
190-
jshintrc: ".jshintrc"
191-
},
192-
files: {
193-
src: [ "Gruntfile.js", "build/**/*.js" ]
194-
}
180+
options: {
181+
jshintrc: true
195182
},
196-
tests: {
197-
options: {
198-
jshintrc: "tests/.jshintrc"
199-
},
200-
files: {
201-
src: "tests/unit/**/*.js"
202-
}
203-
}
183+
all: [
184+
"ui/*.js",
185+
"Gruntfile.js",
186+
"build/**/*.js",
187+
"tests/unit/**/*.js"
188+
]
204189
},
205190
csslint: {
206191
base_theme: {

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
[jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web
2-
================================
1+
# [jQuery UI](http://jqueryui.com/) - Interactions and Widgets for the web
32

43
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.
54

65
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.
76

7+
If you want to report a bug/issue, please visit [bugs.jqueryui.com](http://bugs.jqueryui.com).
8+
89
If you are interested in helping develop jQuery UI, you are in the right place.
910
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/).
1011

1112

12-
For contributors
13-
---
13+
## For contributors
1414

1515
If you want to help and provide a patch for a bugfix or new feature, please take
1616
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
2222
message as the description for the pull request.
2323

2424

25-
Running the Unit Tests
26-
---
25+
## Running the Unit Tests
2726

2827
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:
2928

@@ -33,8 +32,7 @@ Run the unit tests with a local server that supports PHP. No database is require
3332
- [Mongoose (most platforms)](http://code.google.com/p/mongoose/)
3433

3534

36-
Building jQuery UI
37-
---
35+
## Building jQuery UI
3836

3937
jQuery UI uses the [Grunt](http://github.com/gruntjs/grunt) build system.
4038

@@ -61,8 +59,7 @@ grunt --help
6159
```
6260

6361

64-
For committers
65-
---
62+
## For committers
6663

6764
When looking at pull requests, first check for [proper commit messages](http://wiki.jqueryui.com/w/page/12137724/Bug-Fixing-Guide).
6865

build/widget.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"button": {
2323
"dependencies": [],
24-
"description": "Enhances a form with themable buttons.",
24+
"description": "Enhances a form with themeable buttons.",
2525
"keywords": [
2626
"form",
2727
"radio",

demos/autocomplete/categories.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
</style>
2222
<script>
2323
$.widget( "custom.catcomplete", $.ui.autocomplete, {
24+
_create: function() {
25+
this._super();
26+
this.menu.option( "items", "> :not(.ui-autocomplete-category)" );
27+
},
2428
_renderMenu: function( ul, items ) {
2529
var that = this,
2630
currentCategory = "";

demos/menu/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<ul>
3131
<li class="ui-state-disabled">Ada</li>
3232
<li>Saarland</li>
33-
<li>Salzburg</li>
33+
<li>Salzburg an der schönen Donau</li>
3434
</ul>
3535
</li>
3636
<li>Saarland</li>

demos/menu/icons.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
<body>
2323

2424
<ul id="menu">
25-
<li><a href="#"><span class="ui-icon ui-icon-disk"></span>Save</a></li>
26-
<li><a href="#"><span class="ui-icon ui-icon-zoomin"></span>Zoom In</a></li>
27-
<li><a href="#"><span class="ui-icon ui-icon-zoomout"></span>Zoom Out</a></li>
28-
<li class="ui-state-disabled"><a href="#"><span class="ui-icon ui-icon-print"></span>Print...</a></li>
25+
<li><span class="ui-icon ui-icon-disk"></span>Save</li>
26+
<li><span class="ui-icon ui-icon-zoomin"></span>Zoom In</li>
27+
<li><span class="ui-icon ui-icon-zoomout"></span>Zoom Out</li>
28+
<li class="ui-state-disabled"><span class="ui-icon ui-icon-print"></span>Print...</li>
2929
<li>
30-
<a href="#">Playback</a>
30+
Playback
3131
<ul>
32-
<li><a href="#"><span class="ui-icon ui-icon-seek-start"></span>Prev</a></li>
33-
<li><a href="#"><span class="ui-icon ui-icon-stop"></span>Stop</a></li>
34-
<li><a href="#"><span class="ui-icon ui-icon-play"></span>Play</a></li>
35-
<li><a href="#"><span class="ui-icon ui-icon-seek-end"></span>Next</a></li>
32+
<li><span class="ui-icon ui-icon-seek-start"></span>Prev</li>
33+
<li><span class="ui-icon ui-icon-stop"></span>Stop</li>
34+
<li><span class="ui-icon ui-icon-play"></span>Play</li>
35+
<li><span class="ui-icon ui-icon-seek-end"></span>Next</li>
3636
</ul>
3737
</li>
38+
<li>Learn more about this menu</li>
3839
</ul>
3940

4041
<div class="demo-description">

demos/resizable/delay-start.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3 class="ui-widget-header">Distance</h3>
3939
</div>
4040

4141
<div class="demo-description">
42-
<p>Delay the start of resizng for a number of milliseconds with the <code>delay</code> option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the <code>distance</code> option.</p>
42+
<p>Delay the start of resizing for a number of milliseconds with the <code>delay</code> option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the <code>distance</code> option.</p>
4343
</div>
4444
</body>
4545
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"dependencies": {},
5858
"devDependencies": {
5959
"grunt": "0.4.1",
60-
"grunt-contrib-jshint": "0.6.3",
60+
"grunt-contrib-jshint": "0.7.1",
6161
"grunt-contrib-uglify": "0.1.1",
6262
"grunt-contrib-concat": "0.1.3",
6363
"grunt-contrib-qunit": "0.2.0",

tests/unit/accordion/accordion_core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ test( "accessibility", function () {
4646

4747
equal( headers.eq( 1 ).attr( "tabindex" ), 0, "active header has tabindex=0" );
4848
equal( headers.eq( 1 ).attr( "aria-selected" ), "true", "active tab has aria-selected=true" );
49-
equal( headers.eq( 1 ).next().attr( "aria-expanded" ), "true", "active tabpanel has aria-expanded=true" );
49+
equal( headers.eq( 1 ).attr( "aria-expanded" ), "true", "active tab has aria-expanded=true" );
5050
equal( headers.eq( 1 ).next().attr( "aria-hidden" ), "false", "active tabpanel has aria-hidden=false" );
5151
equal( headers.eq( 0 ).attr( "tabindex" ), -1, "inactive header has tabindex=-1" );
5252
equal( headers.eq( 0 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected=false" );
53-
equal( headers.eq( 0 ).next().attr( "aria-expanded" ), "false", "inactive tabpanel has aria-expanded=false" );
53+
equal( headers.eq( 0 ).attr( "aria-expanded" ), "false", "inactive tab has aria-expanded=false" );
5454
equal( headers.eq( 0 ).next().attr( "aria-hidden" ), "true", "inactive tabpanel has aria-hidden=true" );
5555
equal( headers.eq( 2 ).attr( "tabindex" ), -1, "inactive header has tabindex=-1" );
5656
equal( headers.eq( 2 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected=false" );
57-
equal( headers.eq( 2 ).next().attr( "aria-expanded" ), "false", "inactive tabpanel has aria-expanded=false" );
57+
equal( headers.eq( 2 ).attr( "aria-expanded" ), "false", "inactive tab has aria-expanded=false" );
5858
equal( headers.eq( 2 ).next().attr( "aria-hidden" ), "true", "inactive tabpanel has aria-hidden=true" );
5959

6060
element.accordion( "option", "active", 0 );
6161
equal( headers.eq( 0 ).attr( "tabindex" ), 0, "active header has tabindex=0" );
6262
equal( headers.eq( 0 ).attr( "aria-selected" ), "true", "active tab has aria-selected=true" );
63-
equal( headers.eq( 0 ).next().attr( "aria-expanded" ), "true", "active tabpanel has aria-expanded=true" );
63+
equal( headers.eq( 0 ).attr( "aria-expanded" ), "true", "active tab has aria-expanded=true" );
6464
equal( headers.eq( 0 ).next().attr( "aria-hidden" ), "false", "active tabpanel has aria-hidden=false" );
6565
equal( headers.eq( 1 ).attr( "tabindex" ), -1, "inactive header has tabindex=-1" );
6666
equal( headers.eq( 1 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected=false" );
67-
equal( headers.eq( 1 ).next().attr( "aria-expanded" ), "false", "inactive tabpanel has aria-expanded=false" );
67+
equal( headers.eq( 1 ).attr( "aria-expanded" ), "false", "inactive tab has aria-expanded=false" );
6868
equal( headers.eq( 1 ).next().attr( "aria-hidden" ), "true", "inactive tabpanel has aria-hidden=true" );
6969
equal( headers.eq( 2 ).attr( "tabindex" ), -1, "inactive header has tabindex=-1" );
7070
equal( headers.eq( 2 ).attr( "aria-selected" ), "false", "inactive tab has aria-selected=false" );
71-
equal( headers.eq( 2 ).next().attr( "aria-expanded" ), "false", "inactive tabpanel has aria-expanded=false" );
71+
equal( headers.eq( 2 ).attr( "aria-expanded" ), "false", "inactive tab has aria-expanded=false" );
7272
equal( headers.eq( 2 ).next().attr( "aria-hidden" ), "true", "inactive tabpanel has aria-hidden=true" );
7373
});
7474

tests/unit/draggable/draggable.html

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,38 @@
88
<link rel="stylesheet" href="../../../external/qunit.css">
99

1010
<style>
11+
#main {
12+
width: 1000px;
13+
height: 1000px;
14+
overflow: scroll;
15+
overflow-x: scroll;
16+
overflow-y: scroll;
17+
position: relative;
18+
left: 0;
19+
top: 0;
20+
}
21+
#main-forceScrollable {
22+
width: 1100px;
23+
height: 1100px;
24+
}
25+
#scrollParent {
26+
width: 1200px;
27+
height: 1200px;
28+
position: relative;
29+
left: 0;
30+
top: 0;
31+
overflow: hidden;
32+
overflow-x: hidden;
33+
overflow-y: hidden;
34+
}
35+
#scrollParent-forceScrollable {
36+
width: 1300px;
37+
height: 1300px;
38+
}
1139
/* See #9077 */
12-
#draggable3, #draggable4 { z-index: 100; }
40+
#draggable3, #draggable4 {
41+
z-index: 100;
42+
}
1343
</style>
1444

1545
<script src="../../../external/qunit.js"></script>
@@ -46,10 +76,14 @@ <h2 id="qunit-banner"></h2>
4676
<h2 id="qunit-userAgent"></h2>
4777
<ol id="qunit-tests"></ol>
4878
<div id="qunit-fixture">
49-
<div id="main">
50-
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div>
51-
<div id="draggable2" style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span><em>Absolute</em></span></div>
52-
<div id="droppable" style="background: green; width: 200px; height: 100px; position: absolute; top: 110px; left: 110px;"><span>Absolute</span></div>
79+
<div id="scrollParent">
80+
<div id="main">
81+
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div>
82+
<div id="draggable2" style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span><em>Absolute</em></span></div>
83+
<div id="droppable" style="background: green; width: 200px; height: 100px; position: absolute; top: 110px; left: 110px;"><span>Absolute</span></div>
84+
<div id="main-forceScrollable"></div>
85+
</div>
86+
<div id="scrollParent-forceScrollable"></div>
5387
</div>
5488
<div style="width: 1px; height: 1000px;"></div>
5589
<div style="position: absolute; width: 1px; height: 2000px;"></div>

0 commit comments

Comments
 (0)