Opened 11 years ago

Closed 7 years ago

#3106 closed bug (invalid)

Sortable: serialize throws error if sortable contains tabs.

Reported by: kape Owned by: kape
Priority: major Milestone: 2.0.0
Component: ui.sortable Version: 1.5.1
Keywords: sortable serialize tabs Cc:
Blocked by: Blocking:

Description

I have a bunch of sortable widgets and for any that contain tabs I get the following error when I call sortable.('serialize'):

widgets_sortableUpdate is the function I call on update.

$[namespace][plugin] is undefined getter()ui.core.js (line 76) (?)()()ui.core.js (line 90) widgets_sortableUpdate(Object originalEvent=Event mouseup which=1 view=window, Object helper=Object placeholder=Object position=Object)widgets.js (line 139) trigger()("sortupdate", [Object originalEvent=Event mouseup which=1 view=window, Object helper=Object placeholder=Object position=Object], td.column25, false, widgets_sortableUpdate(e, ui))jquery.js (line 2030) triggerHandler()("sortupdate", [Object originalEvent=Event mouseup which=1 view=window, Object helper=Object placeholder=Object position=Object], widgets_sortableUpdate(e, ui))jquery.js (line 2255) propagate()("update", Object originalEvent=Event mouseup which=1 view=window, null, undefined)ui.sortable.js (line 63) clear()(Object originalEvent=Event mouseup which=1 view=window, undefined)ui.sortable.js (line 591) mouseStop()(Object originalEvent=Event mouseup which=1 view=window, undefined)ui.sortable.js (line 583) mouseUp()(Object originalEvent=Event mouseup which=1 view=window)ui.core.js (line 260) _mouseUpDelegate()()ui.core.js (line 224) handle()(Object originalEvent=Event mouseup which=1 view=window)jquery.js (line 2076) (?)()()jquery.js (line 1858)

[Break on this error] var methods = $[namespace][plugin].getter
[];

Change History (7)

comment:1 Changed 11 years ago by Cloudream

Milestone: TDB
Priority: minormajor

comment:2 Changed 11 years ago by Scott González

Milestone: TBD1.6

comment:3 Changed 11 years ago by rdworth

Milestone: 1.71.8

comment:4 Changed 8 years ago by rgporter

Doesn't throw an error, and doesn't show anything if you do the following:

jQuery( "#listTabs" ).tabs(); // containing DIV
jQuery("#listTabsSortable").sortable({  //UL tag
  update: function(event, info) {
    var str = jQuery(this).sortable('serialize');
    alert(str);
  }
});

The alert is blank, no result, with 6 LI tags containing unique ID attributes.

Last edited 7 years ago by petersendidit (previous) (diff)

comment:5 Changed 7 years ago by Scott González

Milestone: 1.9.02.0.0

comment:6 Changed 7 years ago by petersendidit

Owner: changed from paul to kape
Status: newpending
Summary: sortable.('serialize') throws error if sortable contains tabs.Sortable: serialize throws error if sortable contains tabs.

Thanks for taking the time to contribute to the jQuery UI project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the git version of both jQuery UI and jQuery to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/ZgAqH/Open the link and click to "Fork" (in the top menu) to get started.

comment:7 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.