Hide before/after quantities when dragged (as they don't make any sens).
authorMaxime Bourget <bmx007@gmail.com>
Fri, 31 May 2013 16:41:09 +0000 (17:41 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Fri, 31 May 2013 16:41:09 +0000 (17:41 +0100)
item_schedule.php

index c1d2b5c2383c88c667bd1228176d0c891f3ddec2..fff2d21feca5fadc869133a919aa07e6d862b9ce 100644 (file)
@@ -98,3 +98,23 @@ tr.late {
 tr.soldout {
                background: pink;
 }
+
+tr.tDnD_whileDrag {
+       background: #ccc;
+       border: 2px solid black;
+}
+tr.tDnD_whileDrag :nth-child(4), tr.tDnD_whileDrag :nth-child(5) {
+       color: transparent;
+       background: transparent;
+}
+</style>
+<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
+<script src="js/jquery.tablednd.0.8.min.js"></script>
+<script text="text/javascript">
+       console.log('hello')
+       $(document).ready(function() {
+               console.log('ready')
+               $('#item_schedule table').tableDnD()
+       }
+       )
+</script>