Ticket #5773: jQuerySortable.html

File jQuerySortable.html, 926 bytes (added by meyerovb, 12 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4    <title>jQuery UI sortable containment parent first/last bug</title>
5    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
6    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js"></script>
7    <style type="text/css">#sortable{width:250px;padding:2px;border:1px solid;}#sortable>li{list-style:none;border:1px solid;margin:2px;}</style>
8</head>
9<body onload="$('#sortable').sortable({ containment: 'parent' });">
10    Move 0 above 1, then try to uncheck the checkbox.  Have to click it twice to uncheck it.<br /><br />
11    <ul id="sortable">
12        <li>1<input type="checkbox"/></li>
13        <li>0</li>
14    </ul>
15</body>
16</html>