diff --git a/README.md b/README.md index 7db1040..b2e3edd 100644 --- a/README.md +++ b/README.md @@ -33,27 +33,26 @@ Please note: every `
  • ` must have either one or two direct children, the first
    tabSize
    -
    How far right or left (in pixels) the item has to travel in order to be nested or to be sent outside its current list. Default: **20**
    +
    How far right or left (in pixels) the item has to travel in order to be nested or to be sent outside its current list. Default: 20
    disableNesting
    -
    The class name of the items that will not accept nested lists. Default: **ui-nestedSortable-no-nesting**
    +
    The class name of the items that will not accept nested lists. Default: ui-nestedSortable-no-nesting
    errorClass
    -
    The class given to the placeholder in case of error. Default: **ui-nestedSortable-error**
    +
    The class given to the placeholder in case of error. Default: ui-nestedSortable-error
    listType
    -
    The list type used (ordered or unordered). Default: **ol**
    +
    The list type used (ordered or unordered). Default: ol
    maxLevels
    -
    The maximum depth of nested items the list can accept. If set to '0' the levels are unlimited. Default: **0**
    +
    The maximum depth of nested items the list can accept. If set to '0' the levels are unlimited. Default: 0
    ## Custom Methods
    serialize
    -
    Serializes the nested list into a string like **setName[item1Id]=parentId&setName[item2Id]=parentId**, reading from each item's id formatted as 'setName_itemId' (where itemId is a number). - It accepts the same options as the original Sortable method (**key**, **attribute** and **expression**).
    +
    Serializes the nested list into a string like setName[item1Id]=parentId&setName[item2Id]=parentId, reading from each item's id formatted as 'setName_itemId' (where itemId is a number). + It accepts the same options as the original Sortable method (key, attribute and expression).
    toArray
    Builds an array where each element is in the form: -``` -setName[n] => +
    setName[n] =>
     {
     	'item_id': itemId,
     	'parent_id': parentId,
    @@ -61,12 +60,11 @@ setName[n] =>
     	'left': left,
     	'right': right,
     }
    -```
    -	It accepts the same options as the original Sortable method (**attribute** and **expression**) plus the custom ** startDepthCount**, that sets the starting depth number (default is **0**).
    + + It accepts the same options as the original Sortable method (attribute and expression) plus the custom startDepthCount, that sets the starting depth number (default is 0).
    toHierarchy
    Builds a hierarchical object in the form: -``` -'0' ... +
    '0' ...
     	'id' => itemId
     '1' ...
     	'id' => itemId
    @@ -77,8 +75,8 @@ setName[n] =>
     			'id' => itemId
     '2' ...
     	'id' => itemId
    -```
    -	Similarly to `toArray`, it accepts **attribute** and **expression** options.
    + + Similarly to toArray, it accepts attribute and expression options.
    ## Known Bugs @@ -87,14 +85,14 @@ setName[n] => ## Requirements -jQuery 1.4+ +jQuery 1.4+ jQuery UI Sortable 1.8+ ## Browser Compatibility Tested with: IE 6/7/8, Firefox 3.6/4, Chrome, Safari 3 -# License +## License This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.