r953 - branches/experimental/demos/functional/templates branches/experimental/tests branches/expe...
Author: rdworth
Date: Mon Nov 17 18:55:25 2008
New Revision: 953
Modified:
branches/experimental/demos/functional/templates/ui.autocomplete.html
branches/experimental/demos/functional/templates/ui.colorpicker.html
branches/experimental/demos/functional/templates/ui.magnifier.html
branches/experimental/tests/autocomplete.html
branches/experimental/tests/datepicker.html
branches/experimental/tests/grid.html
branches/experimental/tests/grid.js
branches/experimental/tests/gridmodel-local.js
branches/experimental/tests/gridmodel.html
branches/experimental/tests/gridmodel.js
branches/experimental/tests/simulate/jquery.simulate.js
branches/experimental/tests/visual/autocomplete/index.html
branches/experimental/tests/visual/dep_loader.html
branches/experimental/tests/visual/grid.html
branches/experimental/tests/visual/keyboard_selection.html
branches/experimental/tests/visual/magnifier.html
branches/experimental/tests/visual/menu/menu.html
branches/experimental/ui/ui.autocomplete.js
branches/experimental/ui/ui.colorpicker.js
branches/experimental/ui/ui.core.js
branches/experimental/ui/ui.core.position.js
branches/experimental/ui/ui.datepicker.js
branches/experimental/ui/ui.grid.js
branches/experimental/ui/ui.gridmodel.js
branches/experimental/ui/ui.magnifier.js
branches/experimental/ui/ui.menu.js
branches/experimental/ui/ui.selectable.js
branches/experimental/ui/ui.sortable.js
branches/experimental/ui/ui.toaster.js
branches/experimental/ui/ui.toasterLite.js
branches/experimental/ui/ui.tree.js
branches/experimental/ui/widget-auto-getters/ui.core.js
branches/experimental/ui/widget-auto-getters/ui.dialog.js
trunk/demos/functional/index.html
trunk/demos/functional/js/behaviour.functionaldemos.js
trunk/demos/functional/js/behaviour.js
trunk/demos/functional/js/functional.demo.js
trunk/demos/functional/templates/ui.dialog.html
trunk/demos/functional/templates/ui.droppable.photos.html
trunk/demos/functional/templates/ui.effects.easing.html
trunk/demos/functional/templates/ui.effects.general.html
trunk/demos/functional/templates/ui.progressbar.html
trunk/demos/functional/templates/ui.slider.html
trunk/demos/functional/templates/ui.sortable.ex1.html
trunk/demos/functional/templates/ui.sortable.ex3.html
trunk/demos/functional/templates/ui.sortable.html
trunk/demos/functional/templates/ui.spinner.html
trunk/demos/functional/templates/ui.tabs.ex1.html
trunk/demos/real-world/effects/demo.js
trunk/demos/real-world/effects/index.html
trunk/demos/real-world/image-cropper/index.html
trunk/demos/real-world/layout/demo.js
trunk/demos/real-world/layout/index.html
trunk/demos/real-world/photo-manager/index.html
trunk/demos/real-world/photo-manager/js/demo.js
trunk/demos/real-world/photo-manager/js/jquery.livequery.js
trunk/demos/real-world/range-interface/index.html
trunk/demos/real-world/splitpane/index.html
trunk/tests/accordion.html
trunk/tests/accordion.js
trunk/tests/all.html
trunk/tests/all_2.html
trunk/tests/core.html
trunk/tests/core.js
trunk/tests/datepicker.html
trunk/tests/dialog.html
trunk/tests/dialog.js
trunk/tests/draggable.html
trunk/tests/draggable.js
trunk/tests/droppable.html
trunk/tests/droppable.js
trunk/tests/progressbar.html
trunk/tests/progressbar.js
trunk/tests/resizable.html
trunk/tests/resizable.js
trunk/tests/selectable.html
trunk/tests/simulate/jquery.simulate.js
trunk/tests/slider.html
trunk/tests/slider.js
trunk/tests/sortable.html
trunk/tests/sortable.js
trunk/tests/spinner.html
trunk/tests/spinner.js
trunk/tests/tabs.html
trunk/tests/tabs.js
trunk/tests/ui.html
trunk/tests/visual/effects.all.html
trunk/tests/visual/effects.all.js
trunk/tests/visual/sortable_massive_scale.html
trunk/tests/visual/spinner.html
trunk/tests/visual/tree.html
trunk/ui/effects.blind.js
trunk/ui/effects.bounce.js
trunk/ui/effects.clip.js
trunk/ui/effects.core.js
trunk/ui/effects.drop.js
trunk/ui/effects.explode.js
trunk/ui/effects.fold.js
trunk/ui/effects.highlight.js
trunk/ui/effects.pulsate.js
trunk/ui/effects.scale.js
trunk/ui/effects.shake.js
trunk/ui/effects.slide.js
trunk/ui/effects.transfer.js
trunk/ui/ui.accordion.js
trunk/ui/ui.core.js
trunk/ui/ui.datepicker.js
trunk/ui/ui.dialog.js
trunk/ui/ui.droppable.js
trunk/ui/ui.progressbar.js
trunk/ui/ui.resizable.js
trunk/ui/ui.selectable.js
trunk/ui/ui.slider.js
trunk/ui/ui.spinner.js
trunk/ui/ui.tabs.js
Log:
Removed all trailing whitespace from .js and .html files
Modified:
branches/experimental/demos/functional/templates/ui.autocomplete.html
==============================================================================
--- branches/experimental/demos/functional/templates/ui.autocomplete.html
(original)
+++ branches/experimental/demos/functional/templates/ui.autocomplete.html
Mon Nov 17 18:55:25 2008
@@ -3,11 +3,11 @@
var autocomplete_data
= '["aero", "airplane", "book","movie","music","sports","skating","swim"]';
var model = {
-
+
renderAt: '#containerDemo',
title: 'Autocomplete Demos',
-
+
demos: [
{
Modified:
branches/experimental/demos/functional/templates/ui.colorpicker.html
==============================================================================
--- branches/experimental/demos/functional/templates/ui.colorpicker.html
(original)
+++ branches/experimental/demos/functional/templates/ui.colorpicker.html
Mon Nov 17 18:55:25 2008
@@ -1,11 +1,11 @@
<script type="text/javascript">
var model = {
-
+
renderAt: '#containerDemo',
title: 'Colorpicker Demos',
-
+
demos: [
{
Modified: branches/experimental/demos/functional/templates/ui.magnifier.html
==============================================================================
--- branches/experimental/demos/functional/templates/ui.magnifier.html
(original)
+++ branches/experimental/demos/functional/templates/ui.magnifier.html Mon
Nov 17 18:55:25 2008
@@ -1,11 +1,11 @@
<script type="text/javascript">
var model = {
-
+
renderAt: '#containerDemo',
title: 'Magnifier Demos',
-
+
demos: [
{
Modified: branches/experimental/tests/autocomplete.html
==============================================================================
--- branches/experimental/tests/autocomplete.html (original)
+++ branches/experimental/tests/autocomplete.html Mon Nov 17 18:55:25 2008
@@ -7,7 +7,7 @@
<script type="text/javascript" src="../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../ui/ui.core.js"></script>
<script type="text/javascript" src="../ui/ui.autocomplete.js"></script>
-
+
<script type="text/javascript" src="qunit/testrunner.js"></script>
<script type="text/javascript" src="simulate/jquery.simulate.js"></script>
@@ -21,9 +21,9 @@
<h2 id="userAgent"></h2>
<div id="main" style="display: none">
-
+
<input type="text" name="autocomplete" value="" id="autocomplete">
-
+
</div>
<ol id="tests"></ol>
Modified: branches/experimental/tests/datepicker.html
==============================================================================
--- branches/experimental/tests/datepicker.html (original)
+++ branches/experimental/tests/datepicker.html Mon Nov 17 18:55:25 2008
@@ -10,9 +10,9 @@
<script type="text/javascript" src="../ui/ui.datepicker.js"></script>
<script type="text/javascript" src="qunit/testrunner.js"></script>
-
+
<script type="text/javascript" src="ui.datepicker.js"></script>
-
+
<style type="text/css">
html { border: 0; }
#main {
Modified: branches/experimental/tests/grid.html
==============================================================================
--- branches/experimental/tests/grid.html (original)
+++ branches/experimental/tests/grid.html Mon Nov 17 18:55:25 2008
@@ -10,13 +10,13 @@
<script type="text/javascript" src="../ui/ui.grid.js"></script>
<script type="text/javascript" src="../ui/ui.gridmodel.js"></script>
-
+
<script type="text/javascript" src="qunit/testrunner.js"></script>
<script type="text/javascript" src="simulate/jquery.simulate.js"></script>
-
+
<script type="text/javascript" src="grid.js"></script>
-
+
<style type="text/css">
html { border: 0; }
#main {
Modified: branches/experimental/tests/grid.js
==============================================================================
--- branches/experimental/tests/grid.js (original)
+++ branches/experimental/tests/grid.js Mon Nov 17 18:55:25 2008
@@ -32,7 +32,7 @@
test("destroy", function() {
expect(6);
- $("#grid").grid().grid("destroy");
+ $("#grid").grid().grid("destroy");
ok(true, '.grid("destroy") called on element');
$([]).grid().grid("destroy");
@@ -60,7 +60,7 @@
equals(el.data("footer.grid"), true, "footer");
equals(el.data("toolbar.grid"), true, "toolbar");
equals(el.data("pagination.grid"), true, "pagination");
-
+
});
Modified: branches/experimental/tests/gridmodel-local.js
==============================================================================
--- branches/experimental/tests/gridmodel-local.js (original)
+++ branches/experimental/tests/gridmodel-local.js Mon Nov 17 18:55:25 2008
@@ -20,7 +20,7 @@
test("local array/objects", function() {
expect(11);
stop();
-
+
/*
if (options.local) {
return {
@@ -34,7 +34,7 @@
}
}
*/
-
+
var model = $.ui.grid.model({
local: emailRecords,
columns: emailColumns
@@ -49,7 +49,7 @@
compare2( response.records[0], emailRecords[0] );
compare2( response.records[1], emailRecords[1] );
compare2( response.records[2], emailRecords[2] );
-
+
model.fetch({
start: 2,
limit: 2
Modified: branches/experimental/tests/gridmodel.html
==============================================================================
--- branches/experimental/tests/gridmodel.html (original)
+++ branches/experimental/tests/gridmodel.html Mon Nov 17 18:55:25 2008
@@ -8,7 +8,7 @@
<script type="text/javascript" src="../ui/ui.gridmodel.js"></script>
<script type="text/javascript" src="qunit/testrunner.js"></script>
<script type="text/javascript" src="gridmodel.js"></script>
-
+
<style type="text/css">
.xerror, .error { display: none }
</style>
@@ -17,10 +17,10 @@
<h1><a href="http://ui.jquery.com">jQuery UI Grid</a> Test Suite</h1>
<h2 id="banner"></h2>
<h2 id="userAgent"></h2>
-
+
<div id="main" style="display:none"></div>
-
+
<ol id="tests"></ol>
-
+
</body>
</html>
Modified: branches/experimental/tests/gridmodel.js
==============================================================================
--- branches/experimental/tests/gridmodel.js (original)
+++ branches/experimental/tests/gridmodel.js Mon Nov 17 18:55:25 2008
@@ -1,5 +1,5 @@
(function() {
-
+
function assertFetch(model) {
var emailRecords = [
{ name: "Peter Pan", email: "peter@pan.de" },
@@ -23,7 +23,7 @@
same( response.records[1], emailRecords[1] );
same( response.records[2], emailRecords[2] );
equals( response.columns.length, 2 );
-
+
model.fetch({
start: 4,
limit: 2,
@@ -34,9 +34,9 @@
equals( response.records.length, 2 );
same( response.records[0], emailRecords[2] );
same( response.records[1], emailRecords[6] );
-
+
start();
-
+
/* filters not yet supported
model.fetch({
start: 0,
@@ -66,7 +66,7 @@
test("remote xml, custom parse", function() {
expect(10);
stop();
-
+
var model = $.ui.grid.model({
ajax: {
url: "data/emails-xml.php",
@@ -92,7 +92,7 @@
};
}
});
-
+
assertFetch(model);
});
Modified: branches/experimental/tests/simulate/jquery.simulate.js
==============================================================================
--- branches/experimental/tests/simulate/jquery.simulate.js (original)
+++ branches/experimental/tests/simulate/jquery.simulate.js Mon Nov 17
18:55:25 2008
@@ -23,7 +23,7 @@
$.simulate = function(el, type, options) {
this.target = el;
this.options = options;
-
+
if (/^drag$/.test(type)) {
this[type].apply(this, [this.target, options]);
} else {
@@ -52,9 +52,9 @@
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
button: 0, relatedTarget: undefined
}, options);
-
+
var relatedTarget = $(e.relatedTarget)[0];
-
+
if ($.isFunction(document.createEvent)) {
evt = document.createEvent("MouseEvents");
evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail,
@@ -70,12 +70,12 @@
},
keyboardEvent: function(type, options) {
var evt;
-
+
var e = $.extend({ bubbles: true, cancelable: true, view: window,
ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
keyCode: 0, charCode: 0
}, options);
-
+
if ($.isFunction(document.createEvent)) {
try {
evt = document.createEvent("KeyEvents");
@@ -100,7 +100,7 @@
}
return evt;
},
-
+
dispatchEvent: function(el, type, evt) {
if (el.dispatchEvent) {
el.dispatchEvent(evt);
@@ -109,7 +109,7 @@
}
return evt;
},
-
+
drag: function(el) {
var self = this, center = this.findCenter(this.target),
options = this.options, x = Math.floor(center.x), y =
Math.floor(center.y),
Modified: branches/experimental/tests/visual/autocomplete/index.html
==============================================================================
--- branches/experimental/tests/visual/autocomplete/index.html (original)
+++ branches/experimental/tests/visual/autocomplete/index.html Mon Nov 17
18:55:25 2008
@@ -11,21 +11,21 @@
<script type="text/javascript" src="localdata.js"></script>
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="stylesheet" href="../../../themes/default/ui.all.css"
type="text/css" media="screen" title="no title" charset="utf-8">
-
+
<script type="text/javascript">
$().ready(function() {
function findValueCallback(event, data, formatted) {
$("<li>").html( !data ? "No match!" : "Selected: " +
formatted).appendTo("#result");
}
-
+
function formatItem(row) {
return row[0] + " (<strong>id: " + row[1] + "</strong>)";
}
function formatResult(row) {
return row[0].replace(/(<.+?>)/gi, '');
}
-
+
$("#suggest1").autocomplete({ data: cities });
$("#month").autocomplete({
data: months,
@@ -75,22 +75,22 @@
scroll: true,
scrollHeight: 300
});
-
-
+
+
$("#clear").click(function() {
$(":input").unautocomplete();
});
});
</script>
-
+
</head>
<body>
<div id="content">
-
+
<form autocomplete="off">
<label>Single City (local):</label>
@@ -118,13 +118,13 @@
<input type="text" id='tags' />
<input type="button" value="Get Value" />
-
+
<input type="submit" value="Submit" />
</form>
-
+
<button id="clear">Remove all autocompletes</button>
-
+
<h3>Result:</h3> <ol id="result"></ol>
</div>
Modified: branches/experimental/tests/visual/dep_loader.html
==============================================================================
--- branches/experimental/tests/visual/dep_loader.html (original)
+++ branches/experimental/tests/visual/dep_loader.html Mon Nov 17 18:55:25
2008
@@ -6,21 +6,21 @@
<title>Dependency loading</title>
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
-
+
<script type="text/javascript">
-
+
$(document).ready(function() {
-
+
$("div").draggable();
-
+
});
-
+
</script>
</head>
<body>
-
+
<div style="width: 100px; height: 100px; background: green;"></div>
-
+
</body>
</html>
Modified: branches/experimental/tests/visual/grid.html
==============================================================================
--- branches/experimental/tests/visual/grid.html (original)
+++ branches/experimental/tests/visual/grid.html Mon Nov 17 18:55:25 2008
@@ -9,95 +9,95 @@
<script type="text/javascript" src="../../ui/ui.gridmodel.js"></script>
<script type="text/javascript" src="../../ui/ui.selectable.js"></script>
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
-
-
+
+
<style type="text/css" media="screen">
-
+
#uiGridLogic {}
-
+
.ui-grid {
border: 5px solid black;
font-family: Arial;
font-size: 12px;
}
-
+
.ui-grid-content {
overflow: auto;
height: 100%;
}
-
+
.ui-grid-footer {
height: 29px;
}
-
+
.ui-grid-footer td {
background: #bbb;
}
-
+
.ui-grid-footer-text {
float: left;
padding: 3px;
margin: 3px;
background: #fff;
}
-
+
.ui-grid-inner {
-
+
}
-
+
.ui-grid-column-header {
background: #eee;
border-right: 1px solid #666;
}
-
+
.ui-grid-column-header div {
padding: 3px;
overflow: hidden;
cursor: pointer;
}
-
+
.ui-grid-column {
overflow: hidden;
border-right: 1px solid #666;
}
-
+
.ui-grid-column div {
padding: 3px;
-
+
}
-
+
.ui-grid-row-hover td {
background: #eee;
}
-
+
.ui-grid-row-selected td {
background: #bbb;
}
-
-
+
+
</style>
-
+
<script type="text/javascript">
-
+
$(document).ready(function() {
-
+
$("#grid").grid({
url: "../data/employees-json.php",
limit: 10,
height: 200,
toolbar: false
});
-
+
});
-
-
+
+
</script>
</head>
<body>
-
+
<div id="grid"></div>
-
+
</body>
</html>
Modified: branches/experimental/tests/visual/keyboard_selection.html
==============================================================================
--- branches/experimental/tests/visual/keyboard_selection.html (original)
+++ branches/experimental/tests/visual/keyboard_selection.html Mon Nov 17
18:55:25 2008
@@ -8,51 +8,51 @@
<script type="text/javascript" src="../../ui/ui.selectable.js"></script>
<style type="text/css" media="screen">
-
+
.ui-selected {
background: green;
font-weight: bold;
}
-
+
.ui-focused {
border: 2px solid red;
}
-
+
</style>
<script type="text/javascript">
-
+
$(document).ready(function() {
&nbs