added basic sortable to workout creation

This commit is contained in:
2013-01-22 18:41:09 -05:00
parent f636d1812d
commit 30ed56b9ba
8 changed files with 44 additions and 26 deletions

View File

@@ -37,8 +37,7 @@ $("#newexercise").validate({
required: true,
maxlength: 24
},
type: {
notEqual: "notselected",
keywords: {
required: true
}
},

View File

@@ -27,6 +27,9 @@ $(document).ready(function() {
cancel: ':input, button' ,
placeholder: "ui-state-highlight",
revert: true,
start: function(e, ui){
ui.placeholder.height(ui.item.height());
},
stop: function(event, ui) {
$('#newworkout').trigger('sortupdate');
}
@@ -78,6 +81,9 @@ $(document).ready(function() {
cancel: ':input, button' ,
placeholder: "ui-state-highlight",
revert: true,
start: function(e, ui){
ui.placeholder.height(ui.item.height());
},
stop: function(event, ui) {
$('#newworkout').trigger('sortupdate');
}

View File

@@ -7,23 +7,22 @@ a {
color: #00B7FF;
}
li {
ul, menu, dir {
list-style-type: none;
}
#sortable ul {
list-style-type: none;
}
#sortable li {
/*#sortable li {
margin: 0 3px 3px 3px;
padding: 0.4em;
padding-left: 1.5em;
height: 24px;
list-style-type: none;
}
*/
label {
margin-left: 5px;
margin-right: 5px;