Skip to main content

Search and Top Navigation

#2017 closed bug (fixed)

Opened December 06, 2007 09:10AM UTC

Closed December 07, 2007 12:25AM UTC

Last modified February 26, 2009 11:19AM UTC

UI sortable start callback

Reported by: antonn Owned by:
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.1
Keywords: sortable callback Cc:
Blocked by: Blocking:
Description

It would be nice to exchange places of triggering sortstart event and hiding element with visibility:hidden.

I.e. this:

$(this.element).triggerHandler("sortstart", [e, that.prepareCallbackObj(this)], o.start);
$(this.element).css('visibility', 'hidden');

should become this:

$(this.element).css('visibility', 'hidden');				
$(this.element).triggerHandler("sortstart", [e, that.prepareCallbackObj(this)], o.start);

doing so will give more control for interface designers to style their sortable elements behaviour.

Example of usage:

stuffContent.sortable({
    start: function (e, el) {
        $(this).css({visibility : "visible", opacity: "0.15"});
    },
    stop: function (e, el) {
        $(this).css({visibility : "visible", opacity: "1"});
    },
Attachments (0)
Change History (3)

Changed December 07, 2007 12:25AM UTC by rdworth comment:1

resolution: → fixed
status: newclosed

Fixed in rev4061

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.2

Milestone 1.2.2 deleted

Changed February 26, 2009 11:19AM UTC by paul comment:3

milestone: → 1.5