Bug Tracker

Modify

Ticket #2017 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

UI sortable start callback

Reported by: antonn Owned by:
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: sortable callback Cc:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by rworth

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

Fixed in rev4061

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.