aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-11-28 23:29:15 +0100
committerFelix Nagel <info@felixnagel.com>2012-11-28 23:29:15 +0100
commit36533a718da41d4dc82286d2b7ff52a34481dbbb (patch)
tree481804cc832f9b8223fd243de8f6ca8dbd119fa2 /demos
parent4e68c526ab464facc56e5b85ca67f4c6648d2f21 (diff)
parent37ea7341823e7dfe54f37596b1d054b8a2e5c3de (diff)
downloadjquery-ui-36533a718da41d4dc82286d2b7ff52a34481dbbb.tar.gz
jquery-ui-36533a718da41d4dc82286d2b7ff52a34481dbbb.zip
Merge branch 'master' into selectmenu
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/combobox.html28
-rw-r--r--demos/button/toolbar.html7
-rw-r--r--demos/dialog/animated.html1
-rw-r--r--demos/dialog/default.html1
-rw-r--r--demos/dialog/modal-confirmation.html1
-rw-r--r--demos/dialog/modal-form.html7
-rw-r--r--demos/dialog/modal-message.html1
-rw-r--r--demos/dialog/modal.html1
8 files changed, 27 insertions, 20 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index 9fd5d4050..6229d47b2 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -24,7 +24,7 @@
bottom: 0;
margin-left: -1px;
padding: 0;
- /* adjust styles for IE 6/7 */
+ /* support: IE7 */
*height: 1.7em;
*top: 0.1em;
}
@@ -46,7 +46,7 @@
.addClass( "ui-combobox" )
.insertAfter( select );
- function removeIfInvalid(element) {
+ function removeIfInvalid( element ) {
var value = $( element ).val(),
matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( value ) + "$", "i" ),
valid = false;
@@ -56,6 +56,7 @@
return false;
}
});
+
if ( !valid ) {
// remove invalid value, as it didn't match anything
$( element )
@@ -66,8 +67,7 @@
setTimeout(function() {
input.tooltip( "close" ).attr( "title", "" );
}, 2500 );
- input.data( "autocomplete" ).term = "";
- return false;
+ input.data( "ui-autocomplete" ).term = "";
}
}
@@ -103,13 +103,14 @@
});
},
change: function( event, ui ) {
- if ( !ui.item )
- return removeIfInvalid( this );
+ if ( !ui.item ) {
+ removeIfInvalid( this );
+ }
}
})
.addClass( "ui-widget ui-widget-content ui-corner-left" );
- input.data( "autocomplete" )._renderItem = function( ul, item ) {
+ input.data( "ui-autocomplete" )._renderItem = function( ul, item ) {
return $( "<li>" )
.append( "<a>" + item.label + "</a>" )
.appendTo( ul );
@@ -144,19 +145,14 @@
input.focus();
});
- input
- .tooltip({
- position: {
- of: this.button
- },
- tooltipClass: "ui-state-highlight"
- });
+ input.tooltip({
+ tooltipClass: "ui-state-highlight"
+ });
},
- destroy: function() {
+ _destroy: function() {
this.wrapper.remove();
this.element.show();
- $.Widget.prototype.destroy.call( this );
}
});
})( jQuery );
diff --git a/demos/button/toolbar.html b/demos/button/toolbar.html
index eb1d2c3ea..5be3668f6 100644
--- a/demos/button/toolbar.html
+++ b/demos/button/toolbar.html
@@ -11,7 +11,12 @@
<link rel="stylesheet" href="../demos.css">
<style>
#toolbar {
- padding: 10px 4px;
+ padding: 11px 4px 9px 4px;
+ }
+
+ /* support: IE7 */
+ *:first-child+html #toolbar {
+ padding: 4px 0px 4px 5px;
}
</style>
<script>
diff --git a/demos/dialog/animated.html b/demos/dialog/animated.html
index 8e1daf131..061396548 100644
--- a/demos/dialog/animated.html
+++ b/demos/dialog/animated.html
@@ -11,6 +11,7 @@
<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>
diff --git a/demos/dialog/default.html b/demos/dialog/default.html
index 214f41d0d..777921e48 100644
--- a/demos/dialog/default.html
+++ b/demos/dialog/default.html
@@ -11,6 +11,7 @@
<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="../demos.css">
<script>
diff --git a/demos/dialog/modal-confirmation.html b/demos/dialog/modal-confirmation.html
index e73c9ea2b..04f5d93fb 100644
--- a/demos/dialog/modal-confirmation.html
+++ b/demos/dialog/modal-confirmation.html
@@ -11,6 +11,7 @@
<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="../demos.css">
<script>
diff --git a/demos/dialog/modal-form.html b/demos/dialog/modal-form.html
index a779494a4..b1d4e52cc 100644
--- a/demos/dialog/modal-form.html
+++ b/demos/dialog/modal-form.html
@@ -12,6 +12,7 @@
<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>
<link rel="stylesheet" href="../demos.css">
@@ -86,10 +87,10 @@
if ( bValid ) {
$( "#users tbody" ).append( "<tr>" +
- "<td>" + name.val() + "</td>" +
- "<td>" + email.val() + "</td>" +
+ "<td>" + name.val() + "</td>" +
+ "<td>" + email.val() + "</td>" +
"<td>" + password.val() + "</td>" +
- "</tr>" );
+ "</tr>" );
$( this ).dialog( "close" );
}
},
diff --git a/demos/dialog/modal-message.html b/demos/dialog/modal-message.html
index 60b7c3e15..19fc0e829 100644
--- a/demos/dialog/modal-message.html
+++ b/demos/dialog/modal-message.html
@@ -12,6 +12,7 @@
<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="../demos.css">
<script>
diff --git a/demos/dialog/modal.html b/demos/dialog/modal.html
index 886a3516c..a59358d53 100644
--- a/demos/dialog/modal.html
+++ b/demos/dialog/modal.html
@@ -11,6 +11,7 @@
<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="../demos.css">
<script>