-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Nicolas Terray wrote:
> Is this the behaviour you want ?
YES! Thats it... thanks a lot, Nicolas. And if you don't need the list
bullets (I won't...), this works even in IE (sigh...):
- ------snip------
<html>
<head>
<style type="text/css">
ul {
list-style-type: none;
padding: 2px;
margin: 2px;
}
li {
padding: 2px;
margin: 2px;
min-height: 1px;
}
</style>
<script type="text/javascript"
src="modules/pnForum/pnjavascript/prototype.js"></script>
<script type="text/javascript"
src="modules/pnForum/pnjavascript/scriptaculous.js"></script>
</head>
<body>
<ul id="cats">
<li>
<div>Cat A</div>
<ul id="cat_a">
<li>A_1</li>
<li>A_2</li>
</ul>
</li>
<li>
<div>Cat B</div>
<ul id="cat_b">
</ul>
</li>
<li>
<div>Cat C</div>
<ul id="cat_c">
<li>C_1</li>
</ul>
</li>
</ul>
<script type='text/javascript'>
Sortable.create("cat_a",
{dropOnEmpty:true,
containment:["cat_a","cat_b","cat_c"],
constraint: false});
Sortable.create("cat_b",
{dropOnEmpty:true,
containment:["cat_a","cat_b","cat_c"],
constraint: false});
Sortable.create("cat_c",
{dropOnEmpty:true,
containment:["cat_a","cat_b","cat_c"],
constraint: false});
Sortable.create("cats");
</script>
</body>
</html>
- ------snap------
- --
"Laut einer Studie der deutschen Ärztevereinigung sterben immer
mehr Rentner vor dem Computer. Sie drücken versehentlich die
Tastenkombination Alt+Entfernen."
http://www.landseer-stuttgart.de
http://www.pn-cms.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEBbEu4U8nM9OV6z8RAo76AKCog2cRqQytfO8GPNpLehbQ+RIzuQCfUEo6
FmwuNdseAi38453PGCzTksM=
=6XOo
-----END PGP SIGNATURE-----
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs