From bb41a258a84413b1fa2fda1a17a9ed86fd9d83e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 13 Oct 2010 15:23:42 -0400 Subject: [PATCH] Sortable demos: Coding standards. --- .../sortable/connect-lists-through-tabs.html | 49 +++++++++---------- demos/sortable/connect-lists.html | 28 +++++------ demos/sortable/default.html | 28 +++++------ demos/sortable/delay-start.html | 30 ++++++------ demos/sortable/display-grid.html | 28 +++++------ demos/sortable/empty-lists.html | 34 ++++++------- demos/sortable/index.html | 4 +- demos/sortable/items.html | 35 +++++++------ demos/sortable/placeholder.html | 30 ++++++------ demos/sortable/portlets.html | 46 ++++++++--------- 10 files changed, 155 insertions(+), 157 deletions(-) diff --git a/demos/sortable/connect-lists-through-tabs.html b/demos/sortable/connect-lists-through-tabs.html index d432afe9c..9b48ede67 100644 --- a/demos/sortable/connect-lists-through-tabs.html +++ b/demos/sortable/connect-lists-through-tabs.html @@ -1,36 +1,37 @@ - + jQuery UI Sortable - Connect lists with Tabs - - - - - - - - - - - - - - - - - - @@ -43,15 +43,15 @@ -
+ +

Sort items from one list into another and vice versa, by passing a selector into the connectWith option. The simplest way to do this is to group all related lists with a CSS class, and then pass that class into the sortable function (i.e., connectWith: '.myclass').

-
diff --git a/demos/sortable/default.html b/demos/sortable/default.html index ab81a8bc0..56b4aa2c3 100644 --- a/demos/sortable/default.html +++ b/demos/sortable/default.html @@ -1,24 +1,24 @@ - + jQuery UI Sortable - Default functionality - - - - - - - - - @@ -37,14 +37,14 @@
-
+ +

Enable a group of DOM elements to be sortable. Click on and drag an element to a new spot within the list, and the other items will adjust to fit. By default, sortable items share draggable properties.

-
diff --git a/demos/sortable/delay-start.html b/demos/sortable/delay-start.html index 7afb6be37..a6c395fcb 100644 --- a/demos/sortable/delay-start.html +++ b/demos/sortable/delay-start.html @@ -1,30 +1,30 @@ - + jQuery UI Sortable - Delay start - - - - - - - - - @@ -51,8 +51,9 @@
-
+ +

Prevent accidental sorting either by delay (time) or distance. Set a number of milliseconds the element needs to be dragged before sorting starts @@ -60,7 +61,6 @@ needs to be dragged before sorting starts with the distance option.

-
diff --git a/demos/sortable/display-grid.html b/demos/sortable/display-grid.html index e90a38c25..3049b54a2 100644 --- a/demos/sortable/display-grid.html +++ b/demos/sortable/display-grid.html @@ -1,23 +1,23 @@ - + jQuery UI Sortable - Display as grid - - - - - - - - - @@ -41,13 +41,13 @@
-
+ +

To arrange sortable items as a grid, give them identical dimensions and float them using CSS.

-
diff --git a/demos/sortable/empty-lists.html b/demos/sortable/empty-lists.html index b68ad5983..bb5123820 100644 --- a/demos/sortable/empty-lists.html +++ b/demos/sortable/empty-lists.html @@ -1,31 +1,31 @@ - + jQuery UI Sortable - Handle empty lists - - - - - - - - - @@ -55,14 +55,14 @@
-
+ +

Prevent all items in a list from being dropped into a separate, empty list using the dropOnEmpty option set to false. By default, sortable items can be dropped on empty lists.

-
diff --git a/demos/sortable/index.html b/demos/sortable/index.html index 9fa93801f..b307ef777 100644 --- a/demos/sortable/index.html +++ b/demos/sortable/index.html @@ -1,9 +1,9 @@ - + jQuery UI Sortable Demos - + diff --git a/demos/sortable/items.html b/demos/sortable/items.html index 3f1cbb6c3..e04138372 100644 --- a/demos/sortable/items.html +++ b/demos/sortable/items.html @@ -1,30 +1,30 @@ - + jQuery UI Sortable - Include / exclude items - - - - - - - - - @@ -51,20 +51,19 @@
-
+ +

Specify which items are eligible to sort by passing a jQuery selector into the items option. Items excluded from this option are not sortable, nor are they valid targets for sortable items.

-

To only prevent sorting on certain items, pass a jQuery selector into the cancel option. Cancelled items remain valid sort targets for others.

-
diff --git a/demos/sortable/placeholder.html b/demos/sortable/placeholder.html index d9c7e838c..bb1709290 100644 --- a/demos/sortable/placeholder.html +++ b/demos/sortable/placeholder.html @@ -1,27 +1,27 @@ - + jQuery UI Sortable - Drop placeholder - - - - - - - - - @@ -40,8 +40,9 @@
-
+ +

When dragging a sortable item to a new location, other items will make room for the that item by shifting to allow white space between them. Pass a @@ -49,7 +50,6 @@ be visible. Use the boolean forcePlaceholderSize option to set dimensions on the placeholder.

-
diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html index fefef3d9f..13620ab94 100644 --- a/demos/sortable/portlets.html +++ b/demos/sortable/portlets.html @@ -1,16 +1,16 @@ - + jQuery UI Sortable - Portlets - - - - - - - - - @@ -83,13 +83,13 @@
-
+ +

Enable portlets (styled divs) as sortables and use the connectWith option to allow sorting between columns.

-
-- 2.39.5