Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2017 closed bug (fixed)

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"});
    },

Change History (3)

comment:1 Changed 15 years ago by rdworth

Resolution: fixed
Status: newclosed

Fixed in rev4061

comment:2 Changed 14 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

comment:3 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.