Bug Tracker

Modify

Ticket #2355 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

.sortable("serialize") unable to handle id with '-' in it

Reported by: Bitruder Owned by: paul
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

If run .sortable("serialize") on a list with an item that has an id with '-' in it, then that id is chopped off just before the - character.

<div id="sortlist"> <div class="sortable" id="test-id">Content</div> <div class="sortable" id="test-again">Hello</div> </div>

If you make that a sortable and then serialize it, you get two test', not test-id' and `test-again'.

(using UI 1.5b)

Change History

comment:1 Changed 5 years ago by Bitruder

Sorry, I now realize that your default value for expression will look for something of the form (.+)[-=_](.+). I just passed an expression option and it works now (I juse used (.+)).

Might want to add that default value to the documentation as I wouldn't have expected - to be a default separating character.

comment:2 Changed 5 years ago by paul

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.