Author: rdworth
Date: Thu Mar 19 13:51:58 2009
New Revision: 2342
Modified:
branches/dev/autocomplete/demos/autocomplete/bassistance.de.html
(contents, props changed)
branches/dev/autocomplete/demos/autocomplete/default.html (contents,
props changed)
branches/dev/autocomplete/demos/autocomplete/demo.bassistance.js
(contents, props changed)
branches/dev/autocomplete/demos/autocomplete/demo.data.js (contents,
props changed)
branches/dev/autocomplete/demos/autocomplete/index.html (contents,
props changed)
branches/dev/autocomplete/demos/autocomplete/replace-select.html
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete.html
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_core.js
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_defaults.js
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_events.js
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_methods.js
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_options.js
(contents, props changed)
branches/dev/autocomplete/tests/unit/autocomplete/autocomplete_tickets.js
(contents, props changed)
branches/dev/autocomplete/tests/visual/autocomplete/index.html
(contents, props changed)
branches/dev/autocomplete/tests/visual/autocomplete/localdata.js
(contents, props changed)
branches/dev/autocomplete/tests/visual/autocomplete/main.css (props
changed)
branches/dev/autocomplete/themes/base/ui.autocomplete.css (contents,
props changed)
branches/dev/autocomplete/ui/ui.autocomplete.js (props changed)
Log:
eol-style and mime-type
Modified: branches/dev/autocomplete/demos/autocomplete/bassistance.de.html
==============================================================================
--- branches/dev/autocomplete/demos/autocomplete/bassistance.de.html
(original)
+++ branches/dev/autocomplete/demos/autocomplete/bassistance.de.html Thu
Mar 19 13:51:58 2009
@@ -1,125 +1,125 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <title>jQuery UI Autocomplete - bassistance.de Demo Suite</title>
-
- <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
- <link type="text/css" href="../demos.css" rel="stylesheet" />
-
- <script type="text/javascript" src="../../jquery-1.3.2.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="demo.bassistance.js"></script>
- <script type="text/javascript" src="demo.data.js"></script>
-
- <style type="text/css">
- body { font-size: 100%; }
- label { float:left; width:12em; color: #444; font-weight: bold; }
- p { padding-bottom: 14px; font-size: 12px; }
- span { color: #777; }
- form { padding: 0 10px; }
- form p { padding: 4px 0; }
- </style>
-</head>
-<body>
-
- <div id="content">
- <h4>This demo recreates the demos from <a
href="http://jquery.bassistance.de/autocomplete/demo/">http://jquery.bassistance.de/autocomplete/demo/</a>
with the new jQuery UI widget/plugin.</h4>
- <form autocomplete="off">
- <h5>Local Data Demos</h5>
-
- <label>Single City:</label>
- <input type="text" id="_TextSingleCity" />
- <input type="button" value="Get Value" id="_ButtonSingleCity" />
- <input type="button" value="Change Max Items"
onclick="changeOptions();" />
- <input type="button" value="Change to Month Data"
onclick="changeToMonths();" />
- <input type="button" value="Change scroll height" id="scrollChange" />
-
-
- <label>Single City:</label>
- <input type="text" id="_TextSingleCity2" />
- <input type="button" value="Get Value" id="_ButtonSingleCity2" />
- <span>({matchContains: true})</span>
-
-
-
- <label>Month:</label>
- <input type="text" id="_TextMonth" />
- <input type="button" value="Get Value" />
- <span>(Current month is excluded from list)</span>
-
-
- <label>E-Mail:</label>
-
- <input type="text" id="_TextEmail" />
- <input type="button" value="Get Value" />
-
-
-
- <label>Multiple Cities:</label>
- <textarea id="_TextMultipleCities" cols="40" rows="3"></textarea>
- <input type="button" value="Get Value" id="_ButtonMultipleCities" />
- <span>({multiple: true, mustMatch: true})</span>
-
-
- <label>Tags:</label>
- <input type="text" id="_TextTags" />
- <input type="button" value="Get Value" id="_ButtonTags" />
- <span>({multiple: true, multipleSeparator: " "})</span>
-
-
-
- <h5>Remote Data Demos</h5>
- <h6>
- Currently not usable locally, as it requires use of a PHP document and
cross domain calls aren't allowed.
- It does highlight what happens when the ajax call fails, however.
- </h6>
-
-
-
- <label>Single Bird:</label>
- <input type="text" id="_TextSingleBird" />
- <input type="button" value="Get Value" id="_ButtonSingleBird" />
-
-
-
- <label>Single Bird Output</label>
- <input id="_OutputSingleBird" />
-
-
- <label>Multiple Birds:</label>
-
- <textarea id="_TextMultipleBirds"></textarea>
- <input type="button" value="Get Value" id="_ButtonMultipleBirds" />
-
-
- <label>Multiple Birds Output</label>
- <textarea id="_OutputMultipleBirds"></textarea>
-
-
-
- <label>Image search:</label>
- <input type="text" id="_TextImageSearch" />
- <input type="button" value="Get Value" id="_ButtonImageSearch" />
-
-
-
- <label>Some dropdown (<3 IE):</label>
- <select>
- <option value="">Item 12334455</option>
- <option value="2">Item 2</option>
-
- <option value="3">Item 3</option>
- <option value="4">Item 4</option>
- </select>
-
-
- <h5>Misc Functionality</h5>
-
- <button id="_ButtonRemove">Remove all autocompletes</button>
-
- </form>
-
- </div>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <title>jQuery UI Autocomplete - bassistance.de Demo Suite</title>
+
+ <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+
+ <script type="text/javascript" src="../../jquery-1.3.2.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="demo.bassistance.js"></script>
+ <script type="text/javascript" src="demo.data.js"></script>
+
+ <style type="text/css">
+ body { font-size: 100%; }
+ label { float:left; width:12em; color: #444; font-weight: bold; }
+ p { padding-bottom: 14px; font-size: 12px; }
+ span { color: #777; }
+ form { padding: 0 10px; }
+ form p { padding: 4px 0; }
+ </style>
+</head>
+<body>
+
+ <div id="content">
+ <h4>This demo recreates the demos from <a
href="http://jquery.bassistance.de/autocomplete/demo/">http://jquery.bassistance.de/autocomplete/demo/</a>
with the new jQuery UI widget/plugin.</h4>
+ <form autocomplete="off">
+ <h5>Local Data Demos</h5>
+
+ <label>Single City:</label>
+ <input type="text" id="_TextSingleCity" />
+ <input type="button" value="Get Value" id="_ButtonSingleCity" />
+ <input type="button" value="Change Max Items"
onclick="changeOptions();" />
+ <input type="button" value="Change to Month Data"
onclick="changeToMonths();" />
+ <input type="button" value="Change scroll height" id="scrollChange" />
+
+
+ <label>Single City:</label>
+ <input type="text" id="_TextSingleCity2" />
+ <input type="button" value="Get Value" id="_ButtonSingleCity2" />
+ <span>({matchContains: true})</span>
+
+
+
+ <label>Month:</label>
+ <input type="text" id="_TextMonth" />
+ <input type="button" value="Get Value" />
+ <span>(Current month is excluded from list)</span>
+
+
+ <label>E-Mail:</label>
+
+ <input type="text" id="_TextEmail" />
+ <input type="button" value="Get Value" />
+
+
+
+ <label>Multiple Cities:</label>
+ <textarea id="_TextMultipleCities" cols="40" rows="3"></textarea>
+ <input type="button" value="Get Value" id="_ButtonMultipleCities" />
+ <span>({multiple: true, mustMatch: true})</span>
+
+
+ <label>Tags:</label>
+ <input type="text" id="_TextTags" />
+ <input type="button" value="Get Value" id="_ButtonTags" />
+ <span>({multiple: true, multipleSeparator: " "})</span>
+
+
+
+ <h5>Remote Data Demos</h5>
+ <h6>
+ Currently not usable locally, as it requires use of a PHP document and
cross domain calls aren't allowed.
+ It does highlight what happens when the ajax call fails, however.
+ </h6>
+
+
+
+ <label>Single Bird:</label>
+ <input type="text" id="_TextSingleBird" />
+ <input type="button" value="Get Value" id="_ButtonSingleBird" />
+
+
+
+ <label>Single Bird Output</label>
+ <input id="_OutputSingleBird" />
+
+
+ <label>Multiple Birds:</label>
+
+ <textarea id="_TextMultipleBirds"></textarea>
+ <input type="button" value="Get Value" id="_ButtonMultipleBirds" />
+
+
+ <label>Multiple Birds Output</label>
+ <textarea id="_OutputMultipleBirds"></textarea>
+
+
+
+ <label>Image search:</label>
+ <input type="text" id="_TextImageSearch" />
+ <input type="button" value="Get Value" id="_ButtonImageSearch" />
+
+
+
+ <label>Some dropdown (<3 IE):</label>
+ <select>
+ <option value="">Item 12334455</option>
+ <option value="2">Item 2</option>
+
+ <option value="3">Item 3</option>
+ <option value="4">Item 4</option>
+ </select>
+
+
+ <h5>Misc Functionality</h5>
+
+ <button id="_ButtonRemove">Remove all autocompletes</button>
+
+ </form>
+
+ </div>
+</body>
+</html>
Modified: branches/dev/autocomplete/demos/autocomplete/default.html
==============================================================================
--- branches/dev/autocomplete/demos/autocomplete/default.html (original)
+++ branches/dev/autocomplete/demos/autocomplete/default.html Thu Mar 19
13:51:58 2009
@@ -1,35 +1,35 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>jQuery UI Autocomplete - Default functionality</title>
- <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
- <script type="text/javascript" src="../../ui/ui.core.js"></script>
- <script type="text/javascript" src="../../ui/ui.autocomplete.js"></script>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <script type="text/javascript">
- $(function() {
- var months =
['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- $("#month").autocomplete({
- data: months
- });
- });
- </script>
-</head>
-<body>
-
-<div class="demo">
-
-<label for="month">Select a month:</label>
-<input id="month" name="month" />
-
-</div><!-- End demo -->
-
-<div class="demo-description">
-
-Start typing, eg. "ja" for January to see the autocomplete.
-
-</div><!-- End demo-description -->
-
-</body>
-</html>
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Autocomplete - Default functionality</title>
+ <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.autocomplete.js"></script>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <script type="text/javascript">
+ $(function() {
+ var months =
['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
+ $("#month").autocomplete({
+ data: months
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<label for="month">Select a month:</label>
+<input id="month" name="month" />
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+Start typing, eg. "ja" for January to see the autocomplete.
+
+</div><!-- End demo-description -->
+
+</body>
+</html>
Modified: branches/dev/autocomplete/demos/autocomplete/demo.bassistance.js
==============================================================================
--- branches/dev/autocomplete/demos/autocomplete/demo.bassistance.js
(original)
+++ branches/dev/autocomplete/demos/autocomplete/demo.bassistance.js Thu
Mar 19 13:51:58 2009
@@ -1,117 +1,117 @@
-$(document).ready(function(){
-
- //Util methods
-
- function findValueCallback(event, data, formatted) {
- $("<li>").html( !data ? "No match!" : "Selected: " +
formatted).appendTo("#result");
- };
-
- function formatItem(item) {
- return row[0] + " (<strong>id: " + row[1] + "</strong>)";
- };
-
- function formatResult(item) {
- return row[0].replace(/(<.+?>)/gi, '');
- };
-
-
- //Local Data
-
- $('#_TextSingleCity').autocomplete({data: cities, scroll: true});
- $('#_TextSingleCity2').autocomplete({data: cities, matchContains: true,
minChars: 0});
-
- $('#_TextMonth').autocomplete({
- data: months,
- minChars: 0,
- max: 12,
- autoFill: true,
- mustMatch: true,
- matchContains: false,
- scrollHeight: 220,
- formatItem: function(item, i, total) {
- // don't show the current month in the list of values (for whatever
reason)
- if ( item[0] == months[new Date().getMonth()] )
- return false;
- return item[0];
- }
- });
-
- $('#_TextEmail').autocomplete({
- data: emails,
- minChars: 0,
- width: 310,
- matchContains: true,
- autoFill: false,
- formatItem: function(item, i, total) {
- return i + "/" + total + ": \"" + item.name + "\" [" + item.to + "]";
- },
- formatMatch: function(item, i, total) {
- return item.name + " " + item.to;
- },
- formatResult: function(item) {
- return item.to;
- }
- });
-
- $('#_TextMultipleCities').autocomplete({
- data: cities,
- multiple: true,
- mustMatch: true,
- autoFill: true
- });
-
- $('#_TextTags').autocomplete({
- data: ['c++', 'java', 'php', 'coldfusion', 'javascript', 'asp'],
- &