jquery - jQueryUI droppable and sortable - cant change the order and few bugs i cant fix -


I have put together most code, just a few things can not work: -

  1. Items in the "Selected DVD" area I need to be able to change the sequence of these DVDs in this list, so I can change the order of 1,2,3 to 3,1,2.

  2. Do not drag items in the "unselected" area in the selected DDDA area

  3. If I click on the link the top Click on "Add all unselected DVDs" and then click on the "Remove All Selected DVDs" link, this does not add them to the bottom of the correct area. However, if you click the "Remove All Selected DVDs" link ... this works

  4. After # 3 if I add a new DVD to the top right I sometimes add the weight of the same DVD?

    Whatever I have done here is one of the works:

    More code above in Bella ^

      // Gallery Items $ $ ("li", $ Gallery) Dragable (Druging will not start) (Drugs: (Cancel: "a.ui-icon", // click) Back: "Invalid", // When not left, the item will be back in its initial state: "document", helper: "clone", cursor: "move"}); / Garbage should be drop, gallery items accept $ trash.droppable ({accept: "# gallery"; activeClass: "ui-state-highlight", drop: function (event, UI) {deleteImage (UI) .draggable);}});   

    Hope someone can help us,

    Cheers

    As my observations have suggested, you should split it into specific problems below and ask them different questions. But here's some information to help you:

    1. Check out

    2. [edit] < / Strong> In your JSFIddle, your problem does not exist for me (in Chrome)

    3. This should be a different question (although you may already have a duplicate already in it

    4. If your answer is not resolved by 3, then there should be an additional question


      A more meaningful answer for purposes Here is some sample code, and which illustrates the use of JQuery is:

        & lt; Div class = "container" & gt; & Lt; Div class = "header" & gt; Selected DVD & lt; / Div & gt; & Lt; Ul id = "gallery" class = "dvdlist" & gt; & Lt; Li & gt; DVD 1 & lt; / Li & gt; & Lt; Li & gt; DVD 2 & lt; / Li & gt; & Lt; Li & gt; DVD 3 & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div class = "container" & gt; & Lt; Div class = "header" & gt; Non-selected DVD & lt; / Div & gt; & Lt; Ul id = "trash" class = "dvdlist" & gt; & Lt; Li & gt; DVD 4 & lt; / Li & gt; & Lt; Li & gt; DVD 5 & lt; / Li & gt; & Lt; Li & gt; DVD 6 & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; $ ("# Gallery"). Sorted ({connectWith: "#trash"}); $ ("#trash"). Sort ({connectWith: "# Gallery"});   



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -