jQuery UIのソート可能なアイテムがiPad/iPhoneのレコードリストで機能しないという問題がありました。私は各レコードの前に[edit]と[delete]のリンクを持っていますが、ui-sortableの問題はhttp://furf.com/exp/touch-punch/sortable.htmlで修正されています。これはマウスのイベントにタッチイベントを再マップするjsファイルを1つだけ追加したものです。今問題は、リスト内の各レコードの前にある[編集]または[削除]リンクをクリックできないことです。誰でも助けてくれますか? IpadではJQuery UISortableが正常に機能しますが、リストの通常のリンクは失敗します
var fixHelper = function (e, ui) {
ui.children().each(function() {
$(this).width($(this).width());
});
return ui;
};
$(document).ready(function() {
$(function() {
$("#dynamicsortlists tbody").sortable({
opacity: 0.6,
helper: fixHelper,
cursor: 'move',
update: function() {
var order = $(this).sortable("serialize") + '&action=updateRecordsListings';
$.post("_changesortorder.php", order, function (theResponse) {
});
}
});
});
When it was not working for iPad, I just include this jquery file jquery.ui.touch-punch.min.js from http://furf.com/exp/touch-punch/sortable.html . And that worked, but now normal links in #dynamicsortlists tbody tr are not working.
Edit : Okay, No one answered, now another issue, may be that is easy. Please look at http://jqueryui.com/demos/sortable/ with the Default Functionality example, now I don't want the whole "li" to be clicked moved up/down, I want a specific icon with in the "li" and only the the "li" can moved up/down holding from that icon. Please help me with this.
誰か助けてもらえますか? – Sohail
投稿できるコードはありますか?たぶん[フィドル](http://www.jsfiddle.net)を作るのだろうか? –
https://github.com/furf/jquery-ui-touch-punchでプラグインの作者と話し合うために問題が発生する可能性があります – didxga