Links are not working in Sortable container (in Android )

Viewed 18

In the image below is my sortable container and individual image can be dragged and dropped to sort. But the action links(icons) in the box are not working on the android browser because of the Js. When I remove sortable JS the links work fine. How can I make both of them work together?

enter image description here

Sortable Js

$("#sortable").sortable({
            cursor: "move",
            start: function (event, ui) {
                ui.item.startPos = ui.item.index();
            },
            stop: function (event, ui) {
                var id = ui.item.attr("id");
                var PropID = $("#PropID").html();
                var obj = {
                    PropID: PropID,
                    ID: id,
                    Pos1: ui.item.startPos ? ui.item.startPos : 0,
                    Pos2: ui.item.index() ? ui.item.index() : 0
                }
                try {
                    $.ajax({
                        type: "POST",
                        url: "/members/pm-add-photos.aspx/MovePhoto",
                        data: JSON.stringify(obj),
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (msg) {
                            var result = msg.d;
                            if (result.toLowerCase().indexOf('error') > -1) {
                                triggertoast("", "We're sorry, there seems to have been an error.", "error");
                            }
                        },
                        error: function (response) {
                            console.log(response);
                        },
                    });

                }
                catch (err) {
                    triggertoast("", "We're sorry, there seems to have been an error.", "error");
                }
            }
        });
        $("#sortable").disableSelection();
0 Answers
Related