At last, it works pretty well with major browsers :D
There is still a little problem about user selection in IE8 when using the shift key for multiple selection (don't know how to disable it).
This commit is contained in:
tonio
2011-01-02 22:17:47 +01:00
parent c43fdc2371
commit 9d2d2fc8ca
2 changed files with 10 additions and 5 deletions
+6 -2
View File
@@ -35,7 +35,7 @@ html > body #listing {
}*/
#emails th {
position: relative;
/*position: relative;*/
}
#emails th input {
@@ -116,10 +116,14 @@ th.selected {
.draggable {
cursor: move;
position: relative;
/*position: relative;*/
border: 0;
}
.draggable img {
position: static;
}
.box li.dragging {
background-color: #6AB0C5;
}
@@ -210,9 +210,6 @@
th.addClass("selected");
}
/* The IE way for disabling default selection */
$$("tbody>tr").set("unselectable", "on");
var emails_table = new HtmlTable($("emails"), {
selectable: true,
shiftForMultiSelect: true
@@ -227,6 +224,10 @@
}
});
/* The IE way for disabling default selection */
/* Actually it doesn't work :p */
$$("tbody>tr").set("unselectable", "on");
bstart_dragging = function(item) {
var block = new Element("div", {id: "draggeditems"})
.setStyles({"position" : "absolute",